/* NF-CRM Modern Design System */
:root {
    --primary-color: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --secondary-color: #f8fafc;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --sidebar-width: 20%;
    --header-height: 70px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.6;
}

/* Layout Structure */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Modern Design */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    right: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-width: 20%;
}

.sidebar-header {
    padding: 1.5rem;
    background: var(--primary-color);
    text-align: center;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.2);
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: transform 0.2s ease;
}

.sidebar-logo:hover {
    transform: scale(1.05);
    color: white;
}

.sidebar-logo i {
    font-size: 1.8rem;
}

.sidebar-nav {
    padding: 20px 0px;
    flex: 1;
}

/* Menu Groups and Dividers */
.nav-group {
    margin: 1.25rem 0;
    padding: 0 0.25rem;
    position: relative;
}

.nav-group:first-of-type {
    margin-top: 1rem;
}

.nav-group::before {
    content: '';
    position: absolute;
    top: -0.625rem;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
    opacity: 0.2;
}

.nav-group:first-of-type::before {
    display: none;
}

.nav-group-header {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    margin-bottom: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: all 0.2s ease;
}

.nav-group-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
    opacity: 0.3;
}

.nav-group-header i {
    font-size: 0.8rem;
    opacity: 0.9;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.nav-group:hover .nav-group-header {
    opacity: 0.8;
}

.nav-group:hover .nav-group-header i {
    transform: scale(1.05);
}

.menu-group {
    margin: 1.5rem 0;
    padding: 0 0.5rem;
}

.menu-group-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 1rem 1.5rem;
    opacity: 0.5;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    margin-top: auto;
    position: relative;
}

.sidebar-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.support-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.support-link:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-dark);
}

.copyright-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.nav-item {
    margin: 0.25rem 1rem;
}

.nav-group .nav-item {
    margin: 0.15rem 0.5rem;
}

.nav-group .nav-item .nav-link {
    padding-right: 1.5rem;
    font-size: 0.9rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.85rem;
    position: relative;
    overflow: hidden;
    margin: 0.25rem 0.5rem;
    font-weight: 500;
}



.nav-link:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    color: var(--primary-color);
    transform: translateX(-2px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.nav-link:hover::before {
    width: 3px;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-link.active::before {
    width: 100%;
}

.nav-link i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover i {
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-right: var(--sidebar-width);
    min-height: 100vh;
}

/* Header */
.header {
    background: white;
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: var(--shadow-sm);
    height: 86.39px;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
}

/* Content Area */
.content {
    padding: 2rem;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--secondary-color);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.primary { background: var(--primary-color); }
.stat-icon.success { background: var(--success-color); }
.stat-icon.warning { background: var(--warning-color); }
.stat-icon.danger { background: var(--danger-color); }

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.60rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    /* width: 20%; */
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: black;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s ease;
    color: black;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: left 0.1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-left: 2.5rem;
}

/* Tables */
.table-container {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--secondary-color);
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--secondary-color);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary { background: rgba(79, 70, 229, 0.1); color: var(--primary-color); }
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }
.badge-info { background: rgba(59, 130, 246, 0.1); color: var(--info-color); }
.badge-secondary { background: rgba(107, 114, 128, 0.1); color: var(--text-secondary); }

/* Custom status badge colors */
.badge-cyan { background: rgba(6, 182, 212, 0.1); color: #0891b2; }        /* בסניף - תכלת */
.badge-pink { background: rgba(236, 72, 153, 0.1); color: #be185d; }       /* הזמנה כפולה - ורוד */
.badge-orange { background: rgba(251, 146, 60, 0.1); color: #ea580c; }     /* בהשהייה - כתום */
.badge-gray { background: rgba(107, 114, 128, 0.1); color: #4b5563; }      /* בוטל - אפור */
.badge-light { background: rgba(229, 231, 235, 0.3); color: #6b7280; }     /* טיוטה - אפור בהיר */

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

/* Notes Timeline */
.notes-timeline {
    max-height: 400px;
    overflow-y: auto;
}

.note-item {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    border-right: 4px solid var(--primary-color);
    text-align: right;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.note-content {
    background: white;
    padding: 0.75rem;
    border-radius: calc(var(--border-radius) - 2px);
    border: 1px solid var(--border-color);
    white-space: normal;
    text-align: right;
    display: flex;
    justify-content: flex-start;
}

/* Responsive */
@media (max-width: 768px) {
    /* Mobile Sidebar */
    .sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 9999;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar.mobile-open {
        right: 0;
    }
    
    .main-content {
        margin-right: 0;
        width: 100%;
    }
    
    /* Mobile Header */
    .header {
        padding: 0 1rem;
        position: relative;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        margin-left: 1rem;
    }
    
    .header-title {
        font-size: 1.25rem;
    }
    
    /* Mobile Content */
    .content {
        padding: 1rem;
    }
    
    /* Mobile Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Mobile Tables - Convert to Cards */
    .table-container {
        display: none;
    }
    
    .mobile-cards {
        display: block;
    }
    
    .mobile-card {
        background: white;
        border-radius: var(--border-radius);
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border-color);
    }
    
    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-card-title {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 1rem;
    }
    
    .mobile-card-id {
        background: var(--primary-color);
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    .mobile-card-body {
        display: grid;
        gap: 0.5rem;
    }
    
    .mobile-card-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.25rem 0;
    }
    
    .mobile-card-label {
        font-size: 0.875rem;
        color: var(--text-secondary);
        font-weight: 500;
    }
    
    .mobile-card-value {
        font-size: 0.875rem;
        color: var(--text-primary);
        text-align: left;
    }
    
    .mobile-card-actions {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-color);
        display: flex;
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    /* Mobile Forms */
    .form-section {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile Grid Layouts */
    [style*="grid-template-columns"] {
        display: block !important;
    }
    
    [style*="grid-template-columns"] > * {
        margin-bottom: 1rem;
    }
    
    /* Mobile Product Rows */
    .product-row > div[style*="grid"] {
        display: block !important;
    }
    
    .product-row > div[style*="grid"] > * {
        margin-bottom: 1rem;
    }
    
    /* Mobile Charts */
    .chart-container {
        height: 250px;
    }
    
    /* Mobile Statistics */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Mobile Charts Grid */
    [style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }
    
    [style*="grid-template-columns: 1fr 1fr"] > * {
        margin-bottom: 2rem;
    }
    
    /* Mobile Performance Summary */
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        display: block !important;
    }
    
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] > * {
        margin-bottom: 1rem;
    }
    
    /* Mobile Filters */
    .card form[style*="grid"] {
        display: block !important;
    }
    
    .card form[style*="grid"] > * {
        margin-bottom: 1rem;
    }
    
    .card form[style*="grid"] > div:last-child {
        display: flex;
        gap: 0.5rem;
    }
    
    /* Mobile Buttons */
    .btn {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Mobile User Management */
    .users-grid {
        display: block !important;
    }
    
    .users-grid > * {
        margin-bottom: 2rem;
    }
    
    /* Mobile Modal */
    #editModal > div {
        width: 95% !important;
        margin: 1rem;
    }
    
    /* Mobile Notifications */
    .notifications-panel {
        width: 300px;
        right: -50px;
    }
    
    .notifications-dropdown {
        margin-left: 0.5rem;
    }
    
    /* Mobile Overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }
    
    .mobile-overlay.active {
        display: block;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .sidebar {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
    }
    
    .main-content {
        margin-right: 260px;
    }
    
    .nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .sidebar-header {
        padding: 1.5rem 1.25rem;
    }
    
    .sidebar-logo {
        font-size: 1.35rem;
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-cards {
        display: none !important;
    }
    
    .table-container {
        display: block !important;
    }
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .mobile-cards {
        display: block !important;
    }
    
    .table-container {
        display: none !important;
    }
    
    /* Force show mobile cards in orders page */
    .card-body .mobile-cards {
        display: block !important;
    }
    
    .card-body .table-container {
        display: none !important;
    }
}

/* Modern Login Page */
.modern-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 2rem;
}

.modern-login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border-color);
    margin: 0 auto;
}

.modern-login-header {
    background: var(--primary-color);
    color: white;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.login-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.login-subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 300;
}

.modern-login-body {
    padding: 2.5rem;
    background: white;
}

.modern-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modern-form-group {
    position: relative;
}

.modern-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.modern-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modern-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: white;
}

.input-icon {
    position: absolute;
    right: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.modern-input-wrapper.focused .input-icon {
    color: var(--primary-color);
}

.password-toggle {
    position: absolute;
    left: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.08);
}

.modern-login-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.modern-login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.modern-login-btn:active {
    transform: translateY(0);
}

.modern-login-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.modern-login-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.modern-alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.modern-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===============================
   Sidebar Enhancement Complete
   =============================== */

/* All sidebar styles have been consolidated in the main sidebar section above.
   This section previously contained duplicate styles that have been removed
   to ensure consistency and reduce CSS file size. */

/* Mobile Responsive for Login */
@media (max-width: 768px) {
    .modern-login-card {
        margin: 0;
        max-width: none;
        border-radius: 16px;
    }
    
    .modern-login-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .login-logo h1 {
        font-size: 2rem;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .modern-login-body {
        padding: 2rem 1.5rem;
    }
    
    .modern-login-footer {
        padding: 1rem 1.5rem;
    }
    
    .modern-login-container {
        padding: 1rem;
    }
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 1rem; }
.w-100 { width: 100%; }

/* Performance optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Optimize animations */
* {
    will-change: auto;
}

.sidebar,
.mobile-overlay,
.notifications-panel {
    will-change: transform;
}

/* Reduce repaints */
.table tbody tr:hover {
    background: var(--secondary-color);
    transform: translateZ(0); /* Force GPU acceleration */
}

/* Optimize chart containers */
.chart-container {
    contain: layout style paint;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

.pagination-current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.pagination-disabled {
    background: var(--secondary-color);
    color: var(--text-secondary);
    border-color: var(--border-color);
    cursor: not-allowed;
}

.pagination-prev,
.pagination-next {
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.pagination-dots {
    color: var(--text-secondary);
    padding: 0.5rem 0.25rem;
    font-weight: 600;
}

/* Mobile Pagination */
@media (max-width: 768px) {
    .pagination-container {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        min-width: 35px;
        height: 35px;
    }
    
    .pagination-prev,
    .pagination-next {
        padding: 0.375rem 0.75rem;
    }
    
    /* Hide some page numbers on mobile */
    .pagination-container .pagination-btn:not(.pagination-current):not(.pagination-prev):not(.pagination-next) {
        display: none;
    }
    
    .pagination-container .pagination-btn.pagination-current {
        display: inline-flex;
    }
    
    /* Show first and last pages */
    .pagination-container .pagination-btn[href*="page=1"],
    .pagination-container .pagination-btn[href*="page=<?php echo $total_pages; ?>"] {
        display: inline-flex;
    }
}

/* Notifications Bell Panel */
.notifications-dropdown {
    position: relative;
    margin-left: 1rem;
}

.notification-bell {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.notification-bell:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.notification-bell .notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.25rem;
    text-align: center;
    line-height: 1;
    border: 2px solid white;
}

.notifications-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 350px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: none;
    max-height: 400px;
    overflow: hidden;
}

.notifications-panel.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notifications-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mark-all-read:hover {
    background: rgba(79, 70, 229, 0.1);
}

.notifications-list {
    max-height: 250px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notification-item:hover {
    background: var(--secondary-color);
}

.notification-item.unread {
    background: rgba(79, 70, 229, 0.05);
    border-right: 3px solid var(--primary-color);
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.unread-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-top: 0.25rem;
}

.no-notifications {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

.no-notifications i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.no-notifications p {
    margin: 0;
    font-size: 0.875rem;
}

.notifications-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--secondary-color);
}

.view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.view-all-link:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

/* Notification Badge */
.notification-badge {
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    min-width: 1.25rem;
    text-align: center;
    display: inline-block;
}

/* Notification Alerts */
.notifications-container {
    position: relative;
}

.notification-alert {
    border-right: 4px solid var(--info-color);
    background: rgba(59, 130, 246, 0.05);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive for notifications */
@media (max-width: 768px) {
    .notifications-panel {
        position: fixed;
        top: var(--header-height);
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
        max-width: 350px;
        margin: 0 auto;
        z-index: 9999;
    }
    
    .notifications-dropdown {
        position: relative;
    }
}
/* Form Sections */
.form-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    contain: layout style;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.product-row {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.product-row:last-child {
    margin-bottom: 0;
}

/* Button improvements */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Performance: Reduce layout thrashing */
.stats-grid,
.mobile-cards,
.table-container {
    contain: layout style;
}

/* Optimize images and icons */
img, svg, i {
    will-change: auto;
}

/* Optimize transitions */
.btn, .nav-link, .form-control {
    transition: all 0.2s ease;
    will-change: auto;
}

.btn:hover, .nav-link:hover {
    will-change: transform, background-color, color;
}

/* ==========================================
   UTILITY CLASSES - CSS CONSOLIDATION
   ========================================== */

/* Grid Layout Utilities */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.grid-auto-fit-250 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.grid-auto-fit-300 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-sidebar-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Spacing Utilities - Margins */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 0.5rem; }
.ml-2 { margin-left: 1rem; }
.ml-3 { margin-left: 1.5rem; }
.ml-4 { margin-left: 2rem; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 0.5rem; }
.mr-2 { margin-right: 1rem; }
.mr-3 { margin-right: 1.5rem; }
.mr-4 { margin-right: 2rem; }

/* Spacing Utilities - Padding */
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

.pl-0 { padding-left: 0; }
.pl-1 { padding-left: 0.5rem; }
.pl-2 { padding-left: 1rem; }
.pl-3 { padding-left: 1.5rem; }
.pl-4 { padding-left: 2rem; }

.pr-0 { padding-right: 0; }
.pr-1 { padding-right: 0.5rem; }
.pr-2 { padding-right: 1rem; }
.pr-3 { padding-right: 1.5rem; }
.pr-4 { padding-right: 2rem; }

/* Combined padding utilities */
.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Combined margin utilities */
.m-0 { margin: 0; }
.m-1 { margin: 0.5rem; }
.m-2 { margin: 1rem; }
.m-3 { margin: 1.5rem; }
.m-4 { margin: 2rem; }

/* Color Utilities */
.bg-primary-text-white {
    background: var(--primary-color);
    color: white;
}

.bg-secondary {
    background: var(--secondary-color);
}

.bg-success-text-white {
    background: var(--success-color);
    color: white;
}

.bg-warning-text-white {
    background: var(--warning-color);
    color: white;
}

.bg-danger-text-white {
    background: var(--danger-color);
    color: white;
}

.text-white { color: white; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Required field asterisk */
.required-asterisk { color: var(--danger-color); }

/* Form grid layouts */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-grid-4-auto {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

/* Product form layout */
.product-form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

/* Container max width */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* Remove button top margin */
.btn-remove {
    margin-top: 1.5rem;
}

/* Form group no margin */
.form-group-no-margin {
    margin-bottom: 0;
}

/* White label */
.form-label-white {
    color: white;
}

/* Progress Bar Components */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--success-color);
    transition: width 0.3s ease;
}

.progress-fill.primary { background: var(--primary-color); }
.progress-fill.warning { background: var(--warning-color); }
.progress-fill.danger { background: var(--danger-color); }

/* Flex Utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.justify-content-start { justify-content: flex-start; }

/* Width & Height Utilities */
.w-100 { width: 100%; }
.w-75 { width: 75%; }
.w-50 { width: 50%; }
.w-25 { width: 25%; }
.h-100 { height: 100%; }

/* Gap Utilities */
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Additional Utility Classes */
.text-xs {font-size: 0.85rem;}
.form-select-sm {width: auto;font-size: 0.95rem;padding: 0.25rem 0.5rem;}
.bg-info-text-white { background: var(--info-color); color: white; }
.bg-white { background: white; }
.flex-wrap { flex-wrap: wrap; }
.d-inline { display: inline; }
.gap-quarter { gap: 0.25rem; }
.cursor-pointer { cursor: pointer; }
.cursor-pointer:hover { background-color: var(--hover-color, #f8f9fa); }
.text-no-decoration { text-decoration: none; }
.font-weight-600 { font-weight: 600; }
.mt-2 { margin-top: 1rem; }
.text-secondary-sm { color: var(--text-secondary); font-size: 0.875rem; }
.border-top { border-top: 1px solid var(--border-color); }

/* Border Radius Utilities */
.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: 6px; }
.rounded-lg { border-radius: 16px; }

/* Box Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ==========================================
   PAGE-SPECIFIC COMPONENTS
   ========================================== */

/* Dashboard Components */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-stats {
    margin-bottom: 2rem;
}

.dashboard-chart-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.dashboard-quick-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.kpi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Order Management Components */
.order-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.order-products-list {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.order-status-timeline {
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
}

.order-actions-bar {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.filters-grid {
    display: flex;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}

/* Reports Components */
.reports-filters {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.reports-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.report-table-container {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* User Management Components */
.user-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.user-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Form Enhancements */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Table Enhancements */
.table-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.table-search {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.table-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .grid-2-cols,
    .grid-3-cols,
    .grid-sidebar-main,
    .dashboard-grid,
    .order-layout-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .grid-auto-fit,
    .grid-auto-fit-250,
    .grid-auto-fit-300 {
        grid-template-columns: 1fr;
    }
    
    .reports-charts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-quick-actions,
    .order-actions-bar,
    .form-actions,
    .table-actions,
    .user-actions-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .table-search,
    .table-filters,
    .user-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
}

/* Additional utility classes */
.d-grid {
    display: grid;
}

.font-weight-700 {
    font-weight: 700;
}

.gap-half {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.d-inline-block {
    display: inline-block;
}

/* Progress and KPI Classes */
.progress-container {
    width: 60px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.kpi-card {
    text-align: center;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
}

.kpi-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.kpi-label {
    color: var(--text-secondary);
}

.align-items-center {
    align-items: center;
}

.text-danger {
    color: var(--danger-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-secondary-sm {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.gap-4 {
    gap: 2rem;
}

/* Additional utility classes for CSS consolidation */
.mr-auto { margin-right: auto; }
.ml-auto { margin-left: auto; }

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.filters-grid .form-group {
    margin-bottom: 1.5rem;
    /* width: 20%; */
    width: 20%;
}



.filters-grid  .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
}



.content {
    max-width: 1600px;
    margin: 0 auto;
}


.btn-group {
    border-radius: var(--bs-border-radius);
    display: flex;
    flex-direction: row-reverse;
}