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

        :root {
            --gold: #D4AF37;
            --dark-gold: #B8860B;
            --light-gold: #F7E7A0;
            --cream: #FFF8E7;
            --ivory: #FFFFF0;
            --champagne: #F7E7CE;
            --bronze: #CD7F32;
            --rich-black: #1C1C1C;
            --warm-black: #2C2C2C;
            --soft-shadow: rgba(212, 175, 55, 0.3);
            --deep-shadow: rgba(184, 134, 11, 0.4);
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, var(--ivory) 0%, var(--champagne) 50%, var(--cream) 100%);
            min-height: 100vh;
            overflow-x: hidden; 
            margin: 0;
            padding: 0;
        }

        .dashboard-container {
            display: flex;
            min-height: 100vh;
        }

        .sidebar {
            width: 280px;
            background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(247,231,206,0.9));
            backdrop-filter: blur(20px);
            border-right: 2px solid rgba(212, 175, 55, 0.3);
            padding: 20px;
            box-shadow: 5px 0 20px rgba(0,0,0,0.1);
        }

        .logo {
            color: var(--gold);
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 30px;
            text-align: center;
            background: linear-gradient(135deg, var(--gold), var(--bronze));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-item {
            padding: 15px;
            color: var(--rich-black);
            cursor: pointer;
            border-radius: 12px;
            margin-bottom: 8px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 600;
            position: relative;
            overflow: hidden;
        }

        .nav-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .nav-item:hover::before {
            left: 100%;
        }

        .nav-item:hover, .nav-item.active {
            background: linear-gradient(135deg, var(--gold), var(--bronze));
            color: white;
            transform: translateX(5px);
            box-shadow: 0 4px 15px var(--soft-shadow);
        }

        .nav-item i {
            width: 20px;
            text-align: center;
        }

        .nav-badge {
            background: var(--danger);
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: bold;
            margin-left: auto;
        }

        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow-x: hidden; 
            max-width: 100%;
        }

        .header {
            background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(247,231,206,0.9));
            backdrop-filter: blur(20px);
            border-bottom: 2px solid rgba(212, 175, 55, 0.3);
            padding: 20px 30px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        .header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--gold), var(--bronze), var(--gold));

        }

        .header h1 {
            background: linear-gradient(135deg, var(--gold), var(--bronze));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 2rem;
            font-weight: 900;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255,255,255,0.8);
            padding: 8px 15px;
            border-radius: 25px;
            border: 1px solid rgba(212, 175, 55, 0.3);
        }

        .logout-btn {
            background: linear-gradient(135deg, #dc3545, #c82333);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .logout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
        }

        .content-section {
            flex: 1;
            padding: 30px;
            overflow-y: auto;
            overflow-x: hidden; 
            display: none;
            max-width: 100%;
        }

        .content-section.active {
            display: block;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
            max-width: 100%;
            overflow-x: hidden;
        }

        .stat-card {
            background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(247,231,206,0.9));
            backdrop-filter: blur(20px);
            border: 2px solid rgba(212, 175, 55, 0.3);
            padding: 25px;
            border-radius: 20px;
            box-shadow: 0 15px 35px var(--soft-shadow);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(135deg, var(--gold), var(--bronze));
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px var(--deep-shadow);
        }

        .stat-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--gold), var(--bronze));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .stat-content {
            flex: 1;
            text-align: left;
        }

        .stat-card h3 {
            font-size: 2.5rem;
            font-weight: bold;
            color: var(--rich-black);
            margin-bottom: 5px;
        }

        .stat-card p {
            color: var(--warm-black);
            font-weight: 600;
            margin-bottom: 8px;
        }

        .stat-trend {
            font-size: 0.85rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .stat-trend.positive {
            color: var(--success);
        }

        .stat-trend.negative {
            color: var(--danger);
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(212, 175, 55, 0.2);
        }

        .section-header h2 {
            color: var(--rich-black);
            font-size: 1.8rem;
            font-weight: 700;
        }

        .btn {
            background: linear-gradient(135deg, var(--gold), var(--bronze));
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px var(--soft-shadow);
        }

        .btn-danger {
            background: linear-gradient(135deg, #dc3545, #c82333);
        }

        .btn-success {
            background: linear-gradient(135deg, #28a745, #218838);
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            backdrop-filter: blur(5px);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(247,231,206,0.95));
            backdrop-filter: blur(25px);
            padding: 30px;
            border-radius: 20px;
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
            border: 2px solid rgba(212, 175, 55, 0.3);
            box-shadow: 0 30px 60px var(--deep-shadow);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(212, 175, 55, 0.2);
        }

        .close {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: var(--warm-black);
            transition: color 0.3s;
        }

        .close:hover {
            color: var(--gold);
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--rich-black);
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid rgba(212, 175, 55, 0.3);
            border-radius: 10px;
            font-size: 14px;
            background: rgba(255,255,255,0.9);
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
        }

        .table-container {
            background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(247,231,206,0.9));
            backdrop-filter: blur(20px);
            border: 2px solid rgba(212, 175, 55, 0.3);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 15px 35px var(--soft-shadow);
        }

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

        .data-table th {
            background: linear-gradient(135deg, var(--gold), var(--bronze));
            color: white;
            padding: 15px;
            text-align: left;
            font-weight: 600;
        }

        .data-table td {
            padding: 15px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.1);
            color: var(--rich-black);
        }

        .data-table tr:hover {
            background: rgba(212, 175, 55, 0.05);
        }

        .status-badge {
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .status-active {
            background: rgba(40, 167, 69, 0.1);
            color: #28a745;
            border: 1px solid rgba(40, 167, 69, 0.3);
        }

        .status-inactive {
            background: rgba(220, 53, 69, 0.1);
            color: #dc3545;
            border: 1px solid rgba(220, 53, 69, 0.3);
        }

        .action-buttons {
            display: flex;
            gap: 8px;
        }

        .btn-edit, .btn-delete {
            padding: 8px 12px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-edit {
            background: #17a2b8;
            color: white;
        }

        .btn-delete {
            background: #dc3545;
            color: white;
        }

        .btn-edit:hover, .btn-delete:hover {
            transform: translateY(-2px);
        }

        .search-container {
            margin-bottom: 20px;
        }

        .search-input {
            width: 100%;
            max-width: 400px;
            padding: 12px 15px;
            border: 2px solid rgba(212, 175, 55, 0.3);
            border-radius: 25px;
            font-size: 14px;
            background: rgba(255,255,255,0.9);
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
        }

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 25px;
            border-radius: 10px;
            color: white;
            font-weight: 600;
            z-index: 2000;
            transform: translateX(400px);
            transition: transform 0.3s ease;
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        }

        .notification.show {
            transform: translateX(0);
        }

        .notification.success {
            background: linear-gradient(135deg, #28a745, #218838);
        }

        .notification.error {
            background: linear-gradient(135deg, #dc3545, #c82333);
        }

        .notification.info {
            background: linear-gradient(135deg, #17a2b8, #138496);
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--warm-black);
        }

        .empty-state i {
            font-size: 4rem;
            color: var(--gold);
            margin-bottom: 20px;
            opacity: 0.6;
        }

        .empty-state h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--rich-black);
        }

        .empty-state p {
            opacity: 0.8;
        }

        @media (max-width: 768px) {
            .dashboard-container {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                padding: 15px;
                position: relative;
                border-right: none;
                border-bottom: 2px solid rgba(212, 175, 55, 0.3);
            }

            .nav-item {
                padding: 12px;
                font-size: 14px;
                margin-bottom: 5px;
            }

            .nav-item:hover {
                transform: translateY(-2px);
            }

            .main-content {
                min-height: auto;
            }

            .header {
                padding: 15px 20px;
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }

            .header h1 {
                font-size: 1.5rem;
            }

            .header-actions {
                flex-direction: column;
                gap: 10px;
            }

            .user-info {
                font-size: 14px;
                padding: 6px 12px;
            }

            .content-section {
                padding: 15px 10px;
            }

            .stats-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .stat-card {
                padding: 20px 15px;
            }

            .stat-card h3 {
                font-size: 2rem;
            }

            .form-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .modal-content {
                width: 95%;
                margin: 10px;
                padding: 20px;
                max-height: 90vh;
            }

            .data-table {
                font-size: 11px;
                display: block;
                overflow-x: auto;
                white-space: nowrap;
            }

            .data-table th,
            .data-table td {
                padding: 8px 6px;
                min-width: 80px;
            }

            .data-table th:first-child,
            .data-table td:first-child {
                min-width: 120px;
            }

            .action-buttons {
                flex-direction: column;
                gap: 5px;
            }

            .btn-edit, .btn-delete {
                padding: 6px 8px;
                font-size: 11px;
            }

            .search-input {
                max-width: 100%;
                font-size: 14px;
                padding: 10px 15px;
            }

            .section-header {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }

            .section-header h2 {
                font-size: 1.5rem;
            }

            .btn {
                padding: 10px 20px;
                font-size: 14px;
            }

            .notification {
                top: 10px;
                right: 10px;
                left: 10px;
                transform: translateY(-100px);
                max-width: none;
            }

            .notification.show {
                transform: translateY(0);
            }

            .empty-state {
                padding: 40px 15px;
            }

            .empty-state i {
                font-size: 3rem;
            }

            .empty-state h3 {
                font-size: 1.2rem;
            }
        }

        @media (max-width: 480px) {
            .sidebar {
                padding: 10px;
            }

            .nav-item {
                padding: 10px;
                font-size: 13px;
            }

            .header {
                padding: 10px 15px;
            }

            .header h1 {
                font-size: 1.3rem;
            }

            .content-section {
                padding: 10px 5px;
            }

            .stat-card {
                padding: 15px 10px;
            }

            .stat-card h3 {
                font-size: 1.8rem;
            }

            .modal-content {
                padding: 15px;
                margin: 5px;
            }

            .data-table {
                font-size: 10px;
            }

            .data-table th,
            .data-table td {
                padding: 6px 4px;
                min-width: 70px;
            }

            .btn {
                padding: 8px 16px;
                font-size: 13px;
            }

            .search-input {
                padding: 8px 12px;
                font-size: 13px;
            }

            .form-group input,
            .form-group select,
            .form-group textarea {
                padding: 10px 12px;
                font-size: 14px;
            }

            .section-header h2 {
                font-size: 1.3rem;
            }
        }

        @media (max-width: 768px) and (orientation: landscape) {
            .dashboard-container {
                flex-direction: row;
            }

            .sidebar {
                width: 200px;
                border-right: 2px solid rgba(212, 175, 55, 0.3);
                border-bottom: none;
            }

            .nav-item {
                padding: 8px 12px;
                font-size: 12px;
            }

            .header {
                flex-direction: row;
                text-align: left;
            }

            .header h1 {
                font-size: 1.4rem;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .content-section {
                padding: 15px;
            }
        }

        .settings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .settings-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            border: 2px solid rgba(212, 175, 55, 0.2);
        }

        .settings-card h3 {
            color: var(--gold);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .setting-item {
            margin-bottom: 15px;
        }

        .setting-item label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: var(--rich-black);
        }

        .setting-item input[type="text"],
        .setting-item input[type="number"],
        .setting-item select {
            width: 100%;
            padding: 10px;
            border: 2px solid rgba(212, 175, 55, 0.3);
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s;
        }

        .setting-item input[type="text"]:focus,
        .setting-item input[type="number"]:focus,
        .setting-item select:focus {
            outline: none;
            border-color: var(--gold);
        }

        .setting-item input[type="checkbox"] {
            margin-right: 8px;
        }

        .setting-item label {
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        @media (max-width: 768px) {
            .settings-grid {
                grid-template-columns: 1fr;
            }
        }
    
        /* Enhanced Dashboard Styles */
        .system-status-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .status-card {
            background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(247,231,206,0.8));
            border: 1px solid rgba(212, 175, 55, 0.2);
            border-radius: 12px;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .status-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
        }

        .status-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--gold), var(--bronze));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
        }

        .status-content h4 {
            margin: 0 0 5px 0;
            color: var(--rich-black);
            font-size: 14px;
            font-weight: 600;
        }

        .status-indicator {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            font-weight: 600;
        }

        .status-indicator.online {
            color: #28a745;
        }

        .status-indicator.offline {
            color: #dc3545;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: currentColor;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        .stat-chart {
            margin-top: 10px;
            height: 30px;
            border-radius: 4px;
            overflow: hidden;
        }

        /* Charts Section */
        .charts-section {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        .chart-container {
            background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(247,231,206,0.9));
            border: 1px solid rgba(212, 175, 55, 0.2);
            border-radius: 12px;
            padding: 20px;
            backdrop-filter: blur(10px);
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        }

        .chart-header h3 {
            margin: 0;
            color: var(--rich-black);
            font-size: 18px;
            font-weight: 600;
        }

        .chart-controls {
            display: flex;
            gap: 10px;
        }

        .chart-controls select {
            padding: 8px 12px;
            border: 1px solid rgba(212, 175, 55, 0.3);
            border-radius: 6px;
            background: white;
            color: var(--rich-black);
            font-size: 12px;
            cursor: pointer;
        }

        .btn-export {
            padding: 8px 16px;
            background: linear-gradient(135deg, var(--gold), var(--bronze));
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-export:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
        }

        .chart-wrapper {
            position: relative;
            height: 300px;
        }

        /* Activity Section */
        .activity-section {
            background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(247,231,206,0.9));
            border: 1px solid rgba(212, 175, 55, 0.2);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 30px;
            backdrop-filter: blur(10px);
        }

        .activity-section .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        }

        .activity-controls {
            display: flex;
            gap: 10px;
        }

        .btn-refresh, .btn-clear {
            padding: 8px 16px;
            border: 1px solid rgba(212, 175, 55, 0.3);
            border-radius: 6px;
            background: white;
            color: var(--rich-black);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-refresh:hover {
            background: var(--gold);
            color: white;
        }

        .btn-clear:hover {
            background: #dc3545;
            color: white;
            border-color: #dc3545;
        }

        .activity-feed {
            max-height: 400px;
            overflow-y: auto;
        }

        .activity-item {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            padding: 15px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.1);
            transition: background-color 0.3s ease;
        }

        .activity-item:hover {
            background: rgba(212, 175, 55, 0.05);
        }

        .activity-item:last-child {
            border-bottom: none;
        }

        .activity-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--gold), var(--bronze));
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
            flex-shrink: 0;
        }

        .activity-content {
            flex: 1;
        }

        .activity-text {
            color: var(--rich-black);
            font-size: 14px;
            line-height: 1.4;
            margin-bottom: 5px;
        }

        .activity-time {
            color: #666;
            font-size: 12px;
        }

        /* Quick Actions Panel */
        .quick-actions-panel {
            background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(247,231,206,0.9));
            border: 1px solid rgba(212, 175, 55, 0.2);
            border-radius: 12px;
            padding: 20px;
            backdrop-filter: blur(10px);
        }

        .quick-actions-panel h3 {
            margin: 0 0 20px 0;
            color: var(--rich-black);
            font-size: 18px;
            font-weight: 600;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        }

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

        .action-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            padding: 20px 15px;
            background: white;
            border: 1px solid rgba(212, 175, 55, 0.2);
            border-radius: 8px;
            color: var(--rich-black);
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
            border-color: var(--gold);
        }

        .action-btn i {
            font-size: 24px;
            color: var(--gold);
        }

        .action-btn span {
            font-size: 12px;
            font-weight: 600;
            text-align: center;
        }

        /* Responsive Design for Enhanced Dashboard */
        @media (max-width: 1200px) {
            .charts-section {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .system-status-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .actions-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .chart-wrapper {
                height: 250px;
            }

            .activity-feed {
                max-height: 300px;
            }
        }

        @media (max-width: 480px) {
            .system-status-grid {
                grid-template-columns: 1fr;
            }

            .actions-grid {
                grid-template-columns: 1fr;
            }

            .chart-wrapper {
                height: 200px;
            }

            .activity-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .activity-icon {
                width: 35px;
                height: 35px;
                font-size: 14px;
            }
        }
    
        /* Advanced Reporting & Analytics Styles */
        .reports-header {
            text-align: center;
            margin-bottom: 40px;
            padding: 30px;
            background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(247,231,206,0.9));
            border-radius: 12px;
            border: 1px solid rgba(212, 175, 55, 0.2);
        }

        .reports-header h2 {
            margin: 0 0 10px 0;
            color: var(--rich-black);
            font-size: 28px;
            font-weight: 700;
        }

        .reports-header p {
            margin: 0;
            color: #666;
            font-size: 16px;
        }

        /* Report Categories */
        .report-categories {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }

        .category-card {
            background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(247,231,206,0.9));
            border: 1px solid rgba(212, 175, 55, 0.2);
            border-radius: 12px;
            padding: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
        }

        .category-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--gold), var(--bronze));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            margin-bottom: 20px;
        }

        .category-card h3 {
            margin: 0 0 10px 0;
            color: var(--rich-black);
            font-size: 18px;
            font-weight: 600;
        }

        .category-card p {
            margin: 0 0 15px 0;
            color: #666;
            font-size: 14px;
            line-height: 1.5;
        }

        .category-stats {
            font-size: 12px;
            color: var(--gold);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Quick Reports Section */
        .quick-reports-section {
            background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(247,231,206,0.9));
            border: 1px solid rgba(212, 175, 55, 0.2);
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 40px;
            backdrop-filter: blur(10px);
        }

        .quick-reports-section .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        }

        .report-controls {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .report-controls select {
            padding: 8px 12px;
            border: 1px solid rgba(212, 175, 55, 0.3);
            border-radius: 6px;
            background: white;
            color: var(--rich-black);
            font-size: 14px;
            cursor: pointer;
        }

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

        .quick-report-card {
            background: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }

        .quick-report-card:hover {
            transform: translateY(-2px);
        }

        .report-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .report-header h4 {
            margin: 0;
            color: var(--rich-black);
            font-size: 14px;
            font-weight: 600;
        }

        .report-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--gold);
        }

        .report-chart {
            height: 100px;
            margin-bottom: 15px;
        }

        .report-trend {
            font-size: 12px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .report-trend.positive {
            color: #28a745;
        }

        .report-trend.negative {
            color: #dc3545;
        }

        /* Advanced Analytics Section */
        .advanced-analytics-section {
            background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(247,231,206,0.9));
            border: 1px solid rgba(212, 175, 55, 0.2);
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 40px;
            backdrop-filter: blur(10px);
        }

        .advanced-analytics-section .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        }

        .analytics-controls {
            display: flex;
            gap: 10px;
        }

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

        .analytics-card {
            background: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .analytics-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        }

        .analytics-header h4 {
            margin: 0;
            color: var(--rich-black);
            font-size: 16px;
            font-weight: 600;
        }

        .analytics-period select {
            padding: 6px 10px;
            border: 1px solid rgba(212, 175, 55, 0.3);
            border-radius: 4px;
            background: white;
            color: var(--rich-black);
            font-size: 12px;
            cursor: pointer;
        }

        .analytics-chart {
            height: 200px;
            margin-bottom: 20px;
        }

        .analytics-insights {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .insight-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 12px;
            color: #666;
        }

        .insight-item i {
            color: var(--gold);
            width: 16px;
        }

        /* Scheduled Reports Section */
        .scheduled-reports-section {
            background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(247,231,206,0.9));
            border: 1px solid rgba(212, 175, 55, 0.2);
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 40px;
            backdrop-filter: blur(10px);
        }

        .scheduled-reports-section .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        }

        .scheduled-reports-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .scheduled-report-item {
            background: white;
            border-radius: 8px;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .report-info h4 {
            margin: 0 0 5px 0;
            color: var(--rich-black);
            font-size: 16px;
            font-weight: 600;
        }

        .report-info p {
            margin: 0 0 10px 0;
            color: #666;
            font-size: 14px;
        }

        .report-schedule {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: #999;
        }

        .report-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .status-badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .status-badge.active {
            background: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }

        .status-badge.inactive {
            background: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }

        .btn-edit, .btn-delete {
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .btn-edit {
            background: rgba(212, 175, 55, 0.1);
            color: var(--gold);
        }

        .btn-delete {
            background: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }

        .btn-edit:hover {
            background: var(--gold);
            color: white;
        }

        .btn-delete:hover {
            background: #dc3545;
            color: white;
        }

        /* Report Templates Section */
        .report-templates-section {
            background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(247,231,206,0.9));
            border: 1px solid rgba(212, 175, 55, 0.2);
            border-radius: 12px;
            padding: 25px;
            backdrop-filter: blur(10px);
        }

        .report-templates-section .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        }

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

        .template-card {
            background: white;
            border-radius: 8px;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }

        .template-card:hover {
            transform: translateY(-2px);
        }

        .template-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--gold), var(--bronze));
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
        }

        .template-content {
            flex: 1;
        }

        .template-content h4 {
            margin: 0 0 5px 0;
            color: var(--rich-black);
            font-size: 16px;
            font-weight: 600;
        }

        .template-content p {
            margin: 0 0 10px 0;
            color: #666;
            font-size: 12px;
            line-height: 1.4;
        }

        .template-meta {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .template-meta span {
            font-size: 11px;
            color: #999;
        }

        .template-actions {
            display: flex;
            gap: 8px;
        }

        .btn-use {
            padding: 6px 12px;
            background: var(--gold);
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-use:hover {
            background: var(--bronze);
        }

        /* Responsive Design for Reports */
        @media (max-width: 1200px) {
            .analytics-grid {
                grid-template-columns: 1fr;
            }

            .templates-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .report-categories {
                grid-template-columns: 1fr;
            }

            .quick-reports-grid {
                grid-template-columns: 1fr;
            }

            .templates-grid {
                grid-template-columns: 1fr;
            }

            .quick-reports-section .section-header,
            .advanced-analytics-section .section-header,
            .scheduled-reports-section .section-header,
            .report-templates-section .section-header {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }

            .report-controls,
            .analytics-controls {
                flex-direction: column;
                gap: 10px;
            }

            .scheduled-report-item {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }

            .template-card {
                flex-direction: column;
                text-align: center;
            }

            .template-actions {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .reports-header {
                padding: 20px;
            }

            .reports-header h2 {
                font-size: 24px;
            }

            .category-card,
            .quick-reports-section,
            .advanced-analytics-section,
            .scheduled-reports-section,
            .report-templates-section {
                padding: 20px;
            }

            .analytics-card {
                padding: 15px;
            }

            .analytics-header {
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }

            .report-value {
                font-size: 20px;
            }

            .template-meta {
                text-align: center;
            }
        }
    