* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    margin: 0;
    padding: 20px;
    background-color: #f5f7fa;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #3498db;
}
.header h1 {
    color: #2c3e50;
    margin: 0;
}
.header p {
    margin: 5px 0;
    color: #7f8c8d;
}
.details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}
.customer-info {
    width: 48%;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}
.invoice-info {
    width: 48%;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2ecc71;
    text-align: right;
}
.info-group {
    margin-bottom: 10px;
}
.info-group label {
    display: block;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}
.info-group input, .info-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}
.invoice-table th {
    background-color: #3498db;
    color: white;
    padding: 12px 15px;
    text-align: left;
}
.invoice-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}
.invoice-table tr:nth-child(even) {
    background-color: #f8f9fa;
}
.invoice-table input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: background 0.3s;
}
.btn:hover {
    background: #2980b9;
}
.btn-danger {
    background: #e74c3c;
}
.btn-danger:hover {
    background: #c0392b;
}
.btn-success {
    background: #2ecc71;
}
.btn-success:hover {
    background: #27ae60;
}
.btn-warning {
    background: #f39c12;
}
.btn-warning:hover {
    background: #d35400;
}
.actions {
    margin-top: 20px;
    text-align: center;
}
.total-amount {
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}
.saved-invoices {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #3498db;
}
.saved-invoices h2 {
    color: #2c3e50;
}
.invoice-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.invoice-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}
.invoice-card h3 {
    margin-top: 0;
    color: #2c3e50;
}
.invoice-card p {
    margin: 5px 0;
}
.invoice-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.invoice-actions button {
    padding: 8px 12px;
    font-size: 14px;
}
.notification {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: white;
}
.success {
    background-color: #2ecc71;
}
.error {
    background-color: #e74c3c;
}
@media print {
    body * {
        visibility: hidden;
    }
    #print-area, #print-area * {
        visibility: visible;
    }
    #print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}
.invoice-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}






.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
}

.notification.success {
    background-color: #2ecc71;
}

.notification.error {
    background-color: #e74c3c;
}

.close-notification {
    margin-left: 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
}