/* ===== FONT IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #7c3aed;
    --accent-light: #8b5cf6;
    --accent-dark: #6d28d9;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 12px;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Bahnschrift Light', 'Segoe UI', Montserrat;
    background: var(--gray-50);
    color: var(--gray-900);
    font-weight: 300;
}

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Goudy Old Style', 'Georgia', Montserrat;
    font-weight: 700;
    letter-spacing: 0.5px;
}
/* ===== SIDEBAR - LIGHT THEME ===== */
.sidebar {
    width: 213px;
    background: #ffffff;
    color: var(--gray-700);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 100;
    border-right: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 0 8px;
}
.logo-icon { font-size: 28px; }
.logo-text {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Goudy Old Style', 'Georgia', Montserrat;
    letter-spacing: 0.5px;
    color: var(--gray-900);
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAVIGATION ===== */
.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
/* ===== SIDEBAR NAVIGATION - 3D MATERIAL DESIGN ===== */
.sidebar nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Montserrat', Montserrat;
    position: relative;
    
    /* ===== 3D EFFECT ===== */
    background: #ffffff;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar nav .nav-link:hover {
    background: #f8f7fa;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(124, 58, 237, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sidebar nav .nav-link:active {
    transform: translateY(0px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.sidebar nav .nav-link.active {
    background: linear-gradient(135deg, #ede9fe, #f5f3ff);
    color: #7c3aed;
    font-weight: 600;
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(124, 58, 237, 0.2),
        0 2px 4px rgba(124, 58, 237, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(124, 58, 237, 0.1);
}

.sidebar nav .nav-link.active .nav-icon {
    color: #7c3aed;
    text-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

/* ===== LOGOUT BUTTON SPECIAL 3D ===== */
.sidebar nav .logout {
    margin-top: auto;
    color: #000000;
}

.sidebar nav .logout:hover {
    background: #fef2f2;
    color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(220, 38, 38, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.04);
}

.sidebar nav .logout:hover .nav-icon {
    color: #dc2626;
}

.sidebar nav .logout:active {
    transform: translateY(0px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* ===== NAV ICON ENHANCEMENT ===== */
.sidebar nav .nav-link .nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #000000;
    transition: all 0.3s ease;
}

.sidebar nav .nav-link:hover .nav-icon {
    color: #7c3aed;
    transform: scale(1.05);
}

.sidebar nav .nav-link:hover {
    background: #f3f4f6;
    color: var(--gray-800);
}
.sidebar nav .nav-link.active {
    background: #ede9fe;
    color: #7c3aed;
    font-weight: 600;
}
.sidebar nav .nav-link.active .nav-icon {
    color: #7c3aed;
}
.sidebar nav .nav-link .nav-icon { 
    font-size: 18px; 
    width: 24px; 
    text-align: center;
    color: var(--gray-400);
    transition: color 0.25s ease;
}
.sidebar nav .nav-link:hover .nav-icon {
    color: var(--gray-600);
}
.sidebar nav .nav-link.active .nav-icon {
    color: #7c3aed;
}
.sidebar nav hr { 
    border: none; 
    border-top: 1px solid var(--gray-200); 
    margin: 8px 0; 
}
.sidebar nav .logout { 
    margin-top: auto; 
    color: #000000;
}
.sidebar nav .logout:hover { 
    background: #fef2f2;
    color: #dc2626;
}
.sidebar nav .logout:hover .nav-icon {
    color: #dc2626;
}

/* ===== SIDEBAR RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar { 
        width: 60px; 
        padding: 16px 8px;
        border-right: none;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    .sidebar .logo-text { display: none; }
    .sidebar nav .nav-link span:not(.nav-icon) { display: none; }
    .sidebar nav .nav-link {
        justify-content: center;
        padding: 10px;
    }
    .sidebar nav .nav-link .nav-icon {
        font-size: 20px;
        width: auto;
    }
    .sidebar nav hr { margin: 6px 0; }
    .sidebar nav .logout { margin-top: auto; }
}

/* ===== MAIN CONTENT ===== */
.main-content { margin-left: 200px; min-height: 100vh; display: flex; flex-direction: column; }

/* ===== TOP BAR ===== */
.top-bar {
    background: white;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}
.top-bar-left h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
}
.breadcrumb { font-size: 14px; color: var(--gray-500); margin-left: 8px; font-family: 'Montserrat', Montserrat; }
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Montserrat', Montserrat;
}
.user-name { font-weight: 500; color: var(--gray-700); font-family: 'Montserrat', Montserrat; }

/* ===== CONTENT BODY ===== */
.content-body { flex: 1; padding: 32px; }

/* ===== FOOTER ===== */
.footer {
    padding: 16px 32px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 14px;
    background: white;
    font-family: 'Book Antiqua', 'Georgia', Montserrat;
    font-style: italic;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--accent);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.stat-card .stat-label {
    color: var(--gray-500);
    font-size: 14px;
    font-family: 'Montserrat', Montserrat;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 8px 0 4px 0;
    font-family: 'Habibi', 'Georgia', Montserrat;
}
.stat-card .stat-change {
    font-size: 13px;
    font-family: 'Montserrat', Montserrat;
}
.stat-card .stat-change.up { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }
.stat-card.border-accent { border-left-color: var(--accent); }
.stat-card.border-success { border-left-color: var(--success); }
.stat-card.border-warning { border-left-color: var(--warning); }
.stat-card.border-danger { border-left-color: var(--danger); }

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.quick-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Montserrat', Montserrat;
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: 'Montserrat', Montserrat;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-outline { background: transparent; color: var(--gray-700); border: 1px solid var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.card-title {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Goudy Old Style', 'Georgia', Montserrat;
}

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-family: 'Bahnschrift Light', 'Segoe UI', Montserrat;
}
.table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
    font-family: 'Montserrat', Montserrat;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    font-family: 'Bahnschrift Light', 'Segoe UI', Montserrat;
}
.table tbody tr:hover { background: var(--gray-50); }
.table .amount {
    font-family: 'Habibi', 'Georgia', Montserrat;
    font-weight: 600;
}

/* ===== STATUS BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Montserrat', Montserrat;
}
.badge-paid { background: #d1fae5; color: #065f46; }
.badge-unpaid { background: #fee2e2; color: #991b1b; }
.badge-overdue { background: #fef3c7; color: #92400e; }
.badge-draft { background: var(--gray-200); color: var(--gray-600); }
.badge-sent { background: #dbeafe; color: #1e40af; }

/* ===== AGING SUMMARY ===== */
.aging-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.aging-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 3px solid var(--gray-300);
}
.aging-item .aging-label {
    font-size: 12px;
    color: var(--gray-500);
    font-family: 'Montserrat', Montserrat;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.aging-item .aging-amount {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Habibi', 'Georgia', Montserrat;
    color: var(--gray-900);
}
.aging-item .aging-count {
    font-size: 12px;
    color: var(--gray-500);
    font-family: 'Montserrat', Montserrat;
}
.aging-item.border-current { border-left-color: var(--success); }
.aging-item.border-30 { border-left-color: var(--warning); }
.aging-item.border-60 { border-left-color: var(--accent); }
.aging-item.border-90 { border-left-color: var(--danger); }

/* ===== CHART CONTAINER ===== */
.chart-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}
.chart-container .chart-title {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Goudy Old Style', 'Georgia', Montserrat;
    margin-bottom: 16px;
}
.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 180px;
    gap: 8px;
    padding: 8px 0;
}
.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.chart-bar {
    width: 100%;
    max-width: 40px;
    border-radius: 4px 4px 0 0;
    transition: height 0.6s ease;
    background: var(--accent);
    min-height: 4px;
    position: relative;
}
.chart-bar:hover {
    opacity: 0.8;
}
.chart-bar-label {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 6px;
    font-family: 'Montserrat', Montserrat;
}
.chart-bar-value {
    font-size: 10px;
    color: var(--gray-600);
    margin-bottom: 4px;
    font-family: 'Montserrat', Montserrat;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    z-index: 999;
    font-family: 'Montserrat', Montserrat;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--accent); }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar { width: 60px; padding: 16px 8px; }
    .sidebar .logo-text { display: none; }
    .sidebar nav .nav-link span:not(.nav-icon) { display: none; }
    .main-content { margin-left: 60px; }
    .top-bar { padding: 12px 16px; flex-wrap: wrap; }
    .top-bar-left h1 { font-size: 18px; }
    .content-body { padding: 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .aging-grid { grid-template-columns: 1fr 1fr; }
    .chart-bars { height: 120px; }
}

/* ===== INVOICE FORM STYLES ===== */

.invoice-form {
    max-width: 1200px;
    margin: 0 auto;
}

.invoice-form .card {
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.invoice-form .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.invoice-form .card-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Goudy Old Style', Montserrat;
}

/* ===== FORM ROWS ===== */
.invoice-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.invoice-form .form-group {
    margin-bottom: 16px;
}

.invoice-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    font-family: 'Montserrat', Montserrat;
    letter-spacing: 0.3px;
}

.invoice-form .form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Bahnschrift Light', 'Segoe UI', Montserrat;
    transition: all 0.2s;
    background: #ffffff;
    color: #0f172a;
    min-height: 42px;
}

.invoice-form .form-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.invoice-form .form-input:hover {
    border-color: #94a3b8;
}

.invoice-form .form-input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

/* ===== SELECT DROPDOWN ===== */
.invoice-form select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ===== TEXTAREA ===== */
.invoice-form textarea.form-input {
    resize: vertical;
    min-height: 80px;
    font-family: 'Bahnschrift Light', 'Segoe UI', Montserrat;
}

/* ===== LINE ITEMS TABLE ===== */
.invoice-form .table-wrapper {
    overflow-x: auto;
    margin: 12px 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.invoice-form #line-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 800px;
}

.invoice-form #line-items-table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    font-family: 'Montserrat', Montserrat;
    white-space: nowrap;
}

.invoice-form #line-items-table tbody td {
    padding: 6px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.invoice-form #line-items-table tbody tr:hover {
    background: #f8fafc;
}

.invoice-form #line-items-table .item-total {
    font-weight: 600;
    color: #0f172a;
    text-align: right;
    font-family: 'Habibi', Montserrat;
    font-size: 15px;
}

.invoice-form #line-items-table .form-input {
    padding: 6px 10px;
    font-size: 13px;
    min-height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
}

.invoice-form #line-items-table .form-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.08);
}

/* ===== ADD ITEM BUTTON ===== */
.invoice-form .btn-primary {
    background: #7c3aed;
    color: #ffffff;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', Montserrat;
    margin-top: 12px;
}

.invoice-form .btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* ===== CHARGES SECTION ===== */
.invoice-form .charges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* ===== TOTALS SECTION ===== */
.invoice-form .totals {
    margin-top: 20px;
    padding: 20px 24px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: right;
    max-width: 400px;
    margin-left: auto;
}

.invoice-form .totals div {
    padding: 4px 0;
    font-size: 15px;
    font-family: 'Bahnschrift Light', 'Segoe UI', Montserrat;
}

.invoice-form .totals .grand-total {
    font-size: 24px;
    font-weight: 700;
    color: #7c3aed;
    padding-top: 12px;
    border-top: 2px solid #e2e8f0;
    margin-top: 6px;
    font-family: 'Habibi', Montserrat;
}

/* ===== PAYMENT SECTION ===== */
.invoice-form .payment-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.invoice-form .payment-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    font-family: 'Goudy Old Style', Montserrat;
}

.invoice-form .payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
}

.invoice-form .payment-grid .form-group {
    margin-bottom: 0;
}

/* ===== PAYMENT STATUS ===== */
.invoice-form #payment-status {
    font-weight: 700;
    font-size: 14px;
    cursor: default;
    font-family: 'Montserrat', Montserrat;
}

.invoice-form #payment-status[value="Unpaid"] {
    color: #ef4444;
    background: #fef2f2;
}

.invoice-form #payment-status[value="Full Paid"] {
    color: #10b981;
    background: #ecfdf5;
}

.invoice-form #payment-status[value="Partially Paid"] {
    color: #f59e0b;
    background: #fffbeb;
}

/* ===== ACTION BUTTONS ===== */
.invoice-form .action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.invoice-form .action-buttons .btn-outline {
    background: transparent;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', Montserrat;
}

.invoice-form .action-buttons .btn-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.invoice-form .action-buttons .btn-success {
    background: #10b981;
    color: #ffffff;
    padding: 10px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', Montserrat;
}

.invoice-form .action-buttons .btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .invoice-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .invoice-form .charges-grid {
        grid-template-columns: 1fr;
    }
    
    .invoice-form .payment-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .invoice-form .totals {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .invoice-form .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .invoice-form .action-buttons {
        flex-direction: column;
    }
    
    .invoice-form .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}
/* ===== CUSTOM CLASSES FOR CENTRALIZED CONTROL ===== */

/* ---- Page Headings ---- */
.page-title {
    font-family: 'Goudy Old Style', 'Book Antiqua', Montserrat;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
}

.section-title {
    font-family: 'Goudy Old Style', 'Book Antiqua', Montserrat;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

/* ---- Labels ---- */
.label-purple {
    background: #ede9fe;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    color: #5b21b6;
    font-size: 13px;
    font-weight: 600;
}

/* ---- Table Text ---- */
.table-text {
    color: #000000 !important;
    font-family: 'Bahnschrift Light', Montserrat;
}

.table-head {
    background: #f3e8ff;
    color: #5b21b6;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

/* ---- Links ---- */
.link-primary {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
}

.link-primary:hover {
    text-decoration: underline;
}

/* ---- Cards ---- */
.card-custom {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 30px;
}

/* ---- Form Inputs ---- */
.input-center {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    font-family: 'Bahnschrift Light', Montserrat;
}

/* ---- Buttons ---- */
.btn-custom-primary {
    background: #7c3aed;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', Montserrat;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-custom-primary:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

.btn-custom-success {
    background: #10b981;
    color: white;
    padding: 10px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', Montserrat;
}

.btn-custom-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-custom-outline {
    background: transparent;
    color: #475569;
    padding: 10px 24px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', Montserrat;
    text-decoration: none;
    display: inline-block;
}

.btn-custom-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* ---- Help Page ---- */
.help-container {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
}

.help-heading {
    font-family: 'Goudy Old Style', 'Book Antiqua', Montserrat;
    font-size: 32px;
    color: #0f172a;
}

.help-subheading {
    font-family: 'Goudy Old Style', 'Book Antiqua', Montserrat;
    font-size: 20px;
    color: #0f172a;
    margin-bottom: 12px;
}

.help-text {
    font-family: 'Bahnschrift Light', Montserrat;
    font-size: 16px;
    color: #334155;
    line-height: 1.8;
}

.help-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}

.help-welcome {
    background: linear-gradient(135deg, #ede9fe, #f5f3ff);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid #7c3aed;
}

.help-tip {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

/* ---- Sidebar Text ---- */
.sidebar-text {
    color: #000000 !important;
}

/* ---- Logout Button ---- */
.logout-text {
    color: #000000 !important;
}

/* ===== EXPENSES FORM STYLES ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    font-family: 'Montserrat', Montserrat;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Bahnschrift Light', 'Segoe UI', Montserrat;
    transition: all 0.2s;
    background: #ffffff;
    color: #0f172a;
    min-height: 42px;
}

.form-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input:hover {
    border-color: #94a3b8;
}

.form-input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
    font-family: 'Bahnschrift Light', 'Segoe UI', Montserrat;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
