:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --secondary: #f59e0b;
    --accent: #dc2626;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1f2937;
    --light: #f8fafc;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --sidebar-width: 260px;
    --header-height: 70px;
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: var(--safe-top) 0 var(--safe-bottom);
}

/* Login Modal Styles */
.login-modal {
    max-width: 450px;
}

.login-container {
    text-align: center;
    padding: 20px;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.login-container h2 {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.login-container p {
    color: var(--gray);
    margin-bottom: 30px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.login-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-footer .hint {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 10px;
    font-style: italic;
}

/* Top Navigation Bar */
.top-navbar {
    background: white;
    padding: 0 25px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-sm {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.user-info {
    background: var(--light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 10px;
    min-width: 180px;
    display: none;
    z-index: 1001;
}

.user-menu.show {
    display: block;
}

.menu-item {
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.menu-item:hover {
    background: var(--light);
}

.menu-item i {
    width: 20px;
    color: var(--gray);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-icon.clients {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.stat-icon.staff {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
}

.stat-icon.revenue {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.stat-icon.payroll {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

.action-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.action-card p {
    color: var(--gray);
    font-size: 0.8rem;
}

/* Dashboard Navigation */
.dashboard-nav {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.nav-card {
    background: var(--light);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.nav-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.nav-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: white;
}

.nav-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.nav-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

.nav-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.nav-badge.warning {
    background: var(--warning);
}

/* Recent Activity */
.recent-activity {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: var(--light);
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: #eef2ff;
}

.activity-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.activity-icon.success {
    background: var(--success);
}

.activity-icon.info {
    background: var(--info);
}

.activity-icon.warning {
    background: var(--warning);
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.activity-content p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Access Permissions */
.access-permissions {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.access-permissions h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.permission-item input[type="checkbox"] {
    margin: 0;
}

.permission-item label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--accent);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-info {
    background: var(--info);
    color: white;
}

.btn-purple {
    background: #8b5cf6;
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.data-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: var(--light);
}

/* Status badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-suspended {
    background: #e2e3e5;
    color: #383d41;
}

/* Report Styles */
.report-options {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0;
}

.report-preview {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.report-preview h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.preview-content {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

/* Update Status */
.update-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.update-item {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.update-item h4 {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.update-item .version {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.update-item .version.latest {
    color: var(--success);
}

.update-item .status.available {
    color: var(--success);
    font-weight: 700;
}

.update-details {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.update-details h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.update-details ul {
    padding-left: 20px;
}

.update-details li {
    margin-bottom: 8px;
}

.backup-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #856404;
}

.backup-warning i {
    font-size: 1.2rem;
}

/* Backup Status */
.backup-status {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.backup-status h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* Print Preview */
.print-preview {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 20px;
    min-height: 300px;
    margin-top: 15px;
}

/* Invoice Preview Styles */
.invoice-preview {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.invoice-header-preview {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.invoice-company {
    flex: 1;
}

.invoice-company h2 {
    color: var(--primary);
    margin-bottom: 5px;
}

.invoice-details-preview {
    text-align: right;
}

.invoice-details-preview h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.invoice-table th,
.invoice-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.invoice-table th {
    background-color: var(--light);
    font-weight: 600;
    color: var(--dark);
}

.invoice-table .text-right {
    text-align: right;
}

/* Client Card Styles */
.client-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 25px;
}

.client-header {
    padding: 25px;
    border-bottom: 1px solid var(--gray-light);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.client-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding: 0 25px;
}

.client-list {
    padding: 20px;
}

.client-card-two-row {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

.client-card-two-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.client-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.client-row:last-child {
    margin-bottom: 0;
}

.client-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.client-details-two-row h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.client-details-two-row p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.client-details-two-row .client-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.client-actions-two-row {
    display: flex;
    gap: 10px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1002;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: white;
    margin: 0 auto;
    padding: 0;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-footer {
    padding: 16px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    position: sticky;
    bottom: 0;
    border-top: 1px solid #e9ecef;
}

/* Utility Classes */
.hidden { display: none; }
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .top-navbar {
        padding: 0 15px;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .user-info {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .client-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .client-details-two-row .client-meta {
        grid-template-columns: 1fr;
    }
    
    .client-actions-two-row {
        justify-content: center;
    }
    
    .update-status {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .invoice-header-preview {
        flex-direction: column;
    }
    
    .invoice-details-preview {
        text-align: left;
        margin-top: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* Enhanced Timesheet Styles */
.timesheet-client-staff-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.timesheet-client-staff-info h4 {
    color: white;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.timesheet-client-staff-info .form-group {
    margin-bottom: 10px;
}

.timesheet-client-staff-info label {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    margin-bottom: 5px;
}

.timesheet-client-staff-info p {
    color: white;
    font-weight: 500;
    margin: 0;
}

.timesheet-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-section {
    background: var(--light);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.detail-section h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row label {
    font-weight: 600;
    color: var(--dark);
    min-width: 120px;
}

.detail-row span.amount {
    font-weight: bold;
    color: var(--success);
    font-size: 1.1rem;
}

/* Quick Action for Timesheet in Dashboard */
.quick-action-timesheet {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quick-action-timesheet .action-icon {
    background: rgba(255,255,255,0.2);
}

/* Responsive Design for Timesheet Modal */
@media (max-width: 768px) {
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-row label {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .timesheet-client-staff-info .form-row {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Client Selection Styles */
.client-selection-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.client-selection-info h4 {
    color: white;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    font-size: 1.2rem;
}

.client-selection-info .form-group {
    margin-bottom: 8px;
}

.client-selection-info strong {
    color: rgba(255,255,255,0.9);
    display: block;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.client-selection-info .form-group:last-child {
    margin-bottom: 0;
}

/* Enhanced dropdown options */
select option {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

select option:hover {
    background-color: #f8f9fa;
}

/* Timesheet summary enhancements */
.timesheet-summary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.timesheet-summary h4 {
    color: white;
    margin-bottom: 15px;
}

.timesheet-summary .form-group {
    text-align: center;
    padding: 10px;
}

.timesheet-summary strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.timesheet-summary span {
    font-size: 1.3rem;
    font-weight: bold;
}
/* Auto Invoice Settings Styles */
.auto-invoice-status {
    background: var(--light);
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid var(--primary);
}

.auto-invoice-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 5px;
}

.email-template-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 300px;
    animation: slideInRight 0.3s ease;
}

.notification-toast.error {
    background: var(--accent);
}

.notification-toast.warning {
    background: var(--warning);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}