* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    color: #1a2a3a;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0b2a3b;
    padding: 8px 20px 8px 15px;
    border-radius: 50px;
}

.logo-icon {
    color: #f5c542;
    font-size: 24px;
}

.logo-text {
    color: white;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
}

.logo-sub {
    color: #b6d0e0;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 2px;
}

.enterprises-badge {
    background: #f5c542;
    color: #0b2a3b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.tagline {
    color: #4a6a7a;
    font-size: 14px;
    font-weight: 300;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #0b2a3b;
    color: white;
}

.btn-primary:hover {
    background: #1a4057;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11,42,59,0.2);
}

.btn-success {
    background: #1e7e34;
    color: white;
}

.btn-success:hover {
    background: #146c2a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #0b2a3b;
    border: 2px solid #d0ddee;
}

.btn-outline:hover {
    background: #f0f4f8;
    border-color: #0b2a3b;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 8px 12px;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card.highlight {
    background: linear-gradient(135deg, #0b2a3b, #1a4057);
    color: white;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #f0f4f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #0b2a3b;
}

.stat-icon.pending { background: #fff3db; color: #a7690a; }
.stat-icon.paid { background: #e8f3e6; color: #1f6e3f; }
.stat-icon.overdue { background: #fde8e8; color: #b13a3a; }
.stat-card.highlight .stat-icon { background: rgba(255,255,255,0.15); color: #f5c542; }

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    color: #6b8599;
}

.stat-card.highlight .stat-label {
    color: #b6d0e0;
}

/* Section */
.section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    color: #0b2a3b;
}

.section-header h2 i {
    color: #f5c542;
    margin-right: 10px;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 15px;
    background: #f8faff;
    font-weight: 600;
    color: #4a6a7a;
    border-bottom: 2px solid #e9eff6;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f4f8;
}

.amount {
    font-weight: 700;
    color: #0b2a3b;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: #e8f3e6; color: #1f6e3f; }
.badge-primary { background: #dbeafe; color: #1a56db; }
.badge-danger { background: #fde8e8; color: #b13a3a; }
.badge-secondary { background: #e5e7eb; color: #4b5563; }
.badge-dark { background: #1f2937; color: white; }

/* Form */
.form {
    max-width: 800px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #4a6a7a;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #dce5ef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0b2a3b;
}

.item-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.item-row .form-group {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f4f8;
}

/* Invoice summary */
.invoice-summary {
    background: #f8faff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #f5c542;
}

.invoice-summary h3 {
    color: #0b2a3b;
    margin-bottom: 10px;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #fde8e8;
    color: #b13a3a;
    border-left: 4px solid #b13a3a;
}

.alert-success {
    background: #e8f3e6;
    color: #1f6e3f;
    border-left: 4px solid #1f6e3f;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #6b8599;
    font-size: 14px;
    border-top: 2px solid #f0f4f8;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .brand {
        flex-wrap: wrap;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .item-row {
        flex-wrap: wrap;
    }
}
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4f8;
}

.modal-header h3 {
    color: #0b2a3b;
    font-size: 22px;
}

.close-modal {
    font-size: 28px;
    font-weight: 700;
    color: #6b8599;
    cursor: pointer;
    transition: 0.2s;
    background: none;
    border: none;
}

.close-modal:hover {
    color: #0b2a3b;
}

.client-select-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.client-select-wrapper select {
    flex: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.alert-success {
    background: #e8f3e6;
    color: #1f6e3f;
    padding: 12px 18px;
    border-radius: 8px;
    border-left: 4px solid #1f6e3f;
    margin-bottom: 15px;
}
/* Add to style.css */
.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }
}
/* Logout button */
.btn-logout {
    background: #dc3545;
    color: white;
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
}
