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

body {
    background: linear-gradient(135deg, #0f0f12 0%, #18181b 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.admin-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}

/* Sidebar */
.admin-sidebar {
    background: rgba(24, 24, 27, 0.95);
    border-right: 1px solid #27272a;
    padding: 24px 0 0 0;
    position: fixed;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.admin-logo {
    padding: 0 24px 32px;
    border-bottom: 1px solid #27272a;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.admin-logo h1 {
    font-size: 24px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
    flex: 1;
    overflow-y: auto;
}

.admin-nav-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a1a1a1;
    font-size: 14px;
    border: 1px solid transparent;
}

.admin-nav-item:hover {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border-color: #ec4899;
}

.admin-nav-item.active {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border-color: #ec4899;
}

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

.nav-badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

.admin-sidebar-footer {
    position: relative;
    padding: 16px;
    border-top: 1px solid #27272a;
    background: rgba(24, 24, 27, 0.95);
    margin-top: auto;
    flex-shrink: 0;
}

.admin-logout {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.admin-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
}

/* Main Content */
.admin-main {
    grid-column: 2;
    padding: 32px;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #27272a;
    width: 100%;
}

.admin-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    width: 100%;
}

.stat-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    border: 2px solid rgba(236, 72, 153, 0.25);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.4), transparent);
}

.stat-card:hover {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.stat-label {
    font-size: 11px;
    color: #a1a1a1;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ec4899;
    text-shadow: 0 2px 8px rgba(236, 72, 153, 0.25);
}

.stat-change {
    font-size: 11px;
    color: #06b6d4;
    font-weight: 500;
}

/* Content Sections */
.admin-section {
    display: none;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.admin-section.active {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.admin-section.loading {
    pointer-events: none;
}

.section-loader-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
    z-index: 20;
    transition: opacity 0.2s ease;
}

.section-loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
}

.section-loader-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(255, 255, 255, 0.14);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: section-loader-spin 1s linear infinite;
}

.section-loader-text {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
}

@keyframes section-loader-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.section-card {
    background: linear-gradient(135deg, rgba(27, 27, 31, 0.6), rgba(39, 39, 42, 0.6));
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    overflow-x: visible;
}

.section-card > div[id*='Dash'],
.section-card > div[id*='List'],
.section-card > table,
.section-card > div[id*='Log'],
.section-card > .table-scroll-wrapper {
    width: 100% !important;
    box-sizing: border-box;
}

.section-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Activity Card */
.activity-card {
    background: linear-gradient(135deg, rgba(27, 27, 31, 0.6), rgba(39, 39, 42, 0.6));
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
}

.activity-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.activity-card h3 i {
    color: #ec4899;
}

/* Table Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 1000px;
}

.admin-table thead {
    background: rgba(39, 39, 42, 0.5);
}

.admin-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #a1a1a1;
    border-bottom: 1px solid #27272a;
    white-space: nowrap;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid #27272a;
    white-space: nowrap;
}

.admin-table tbody tr {
    transition: background 0.3s ease;
}

.admin-table tbody tr:hover {
    background: rgba(236, 72, 153, 0.05);
}

/* Touch Scroll Support for Table Containers */
[style*="overflow-x: auto"] {
    touch-action: auto;
    -webkit-touch-callout: default;
    -webkit-user-select: text;
}

/* Table Scroll Wrapper Class */
.table-scroll-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-user-select: text;
    user-select: text;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
    min-height: 300px;
}

/* Webkit scrollbar styles */
.table-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
    background-clip: content-box;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
}

.status-inactive {
    background: rgba(113, 113, 122, 0.2);
    color: #a1a1a1;
}

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

.action-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.btn-action-menu {
    width: 38px;
    height: 38px;
    padding: 0;
    min-width: 38px;
    border-radius: 50%;
    background: rgba(120, 120, 128, 0.12);
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-action-menu:hover {
    background: rgba(120, 120, 128, 0.18);
}

.action-dropdown-menu {
    position: absolute;
    right: 0;
    top: 44px;
    min-width: 180px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    display: none;
    flex-direction: column;
    padding: 8px 0;
    z-index: 999;
}

.action-dropdown-menu.show {
    display: flex;
}

.action-dropdown-menu button {
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.action-dropdown-menu button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-small {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    touch-action: manipulation;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid #8b5cf6;
}

.btn-edit:hover {
    background: rgba(139, 92, 246, 0.3);
}

.btn-disable {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    border: 1px solid #ec4899;
}

.btn-disable:hover {
    background: rgba(236, 72, 153, 0.3);
}

.btn-reset {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border: 1px solid #fb923c;
}

.btn-reset:hover {
    background: rgba(251, 146, 60, 0.3);
}

.btn-enable {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border: 1px solid #06b6d4;
}

.btn-enable:hover {
    background: rgba(6, 182, 212, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(27, 27, 31, 0.95), rgba(39, 39, 42, 0.95));
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

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

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    font-size: 24px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #fff;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    touch-action: manipulation;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #a1a1a1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    border-color: #71717a;
    color: #fff;
}

/* General Button Mobile Support */
button, .btn, a.btn, [role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Navigation Items Touch Support */
.admin-nav-item {
    touch-action: manipulation;
}

/* Search and Filter */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: #71717a;
}

.search-bar input:focus {
    outline: none;
    border-color: #ec4899;
}

.filter-dropdown {
    padding: 12px 16px;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* Activity Log */
.activity-item {
    padding: 16px;
    border-left: 3px solid #ec4899;
    background: rgba(236, 72, 153, 0.05);
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#recentActivityDash,
#activityLog {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    box-sizing: border-box;
    gap: 12px;
}

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

.activity-description {
    font-size: 14px;
    color: #fff;
}

.activity-detail {
    font-size: 12px;
    color: #a1a1a1;
}

/* Responsive */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .admin-container {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #27272a;
    }

    .admin-main {
        margin-left: 0;
        padding: 20px;
    }

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

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

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-header h2 {
        font-size: 20px;
        width: 100%;
    }

    .admin-logout {
        width: 100%;
    }

    .admin-main {
        padding: 16px;
    }

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

    .admin-table {
        font-size: 12px;
        min-width: 700px;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
        font-size: 11px;
    }
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
}

#adminDashboard {
    width: 100%;
    max-width: 100%;
}

.login-box {
    background: linear-gradient(135deg, rgba(27, 27, 31, 0.9), rgba(39, 39, 42, 0.9));
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 48px;
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.login-box h1 {
    font-size: 32px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-box p {
    color: #a1a1a1;
    margin-bottom: 32px;
    font-size: 14px;
}

.login-group {
    margin-bottom: 24px;
}

.login-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #a1a1a1;
    font-size: 13px;
}

.login-group input {
    width: 100%;
    padding: 12px;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.login-group input:focus {
    outline: none;
    border-color: #ec4899;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
}

/* Maintenance Mode */
.maintenance-container {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3001;
    background: linear-gradient(135deg, #0f0f12 0%, #18181b 100%);
}

.maintenance-container.active {
    display: flex;
}

.maintenance-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(27, 27, 31, 0.9), rgba(39, 39, 42, 0.9));
    border: 2px solid #ec4899;
    border-radius: 16px;
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.3);
}

.maintenance-icon {
    font-size: 80px;
    color: #ec4899;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.maintenance-box h1 {
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.maintenance-box p {
    font-size: 18px;
    color: #a1a1a1;
    margin-bottom: 12px;
    line-height: 1.6;
}

.maintenance-box .sub-text {
    font-size: 14px;
    color: #71717a;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #27272a;
}

.maintenance-status {
    margin-top: 32px;
    padding: 16px;
    background: rgba(236, 72, 153, 0.1);
    border-left: 4px solid #ec4899;
    border-radius: 8px;
}

.maintenance-status-text {
    font-size: 13px;
    color: #ec4899;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Admin Header with Icons */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Notification Bell Styles */
.notification-bell {
    position: relative;
}

.bell-btn {
    background: rgba(39, 39, 42, 0.8);
    border: 1px solid #27272a;
    color: #a1a1a1;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
}

.bell-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-color: #3b82f6;
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.notification-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    width: 380px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: none;
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #27272a;
    background: rgba(39, 39, 42, 0.5);
    border-radius: 8px 8px 0 0;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.close-notifications {
    background: none;
    border: none;
    color: #a1a1a1;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.close-notifications:hover {
    color: #fff;
}

.notification-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
}

.no-notifications {
    padding: 32px 16px;
    text-align: center;
    color: #71717a;
    font-size: 14px;
}

.notification-item {
    padding: 12px;
    border-left: 4px solid #3b82f6;
    background: rgba(39, 39, 42, 0.5);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Modal Styles for Messages */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #27272a;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: #a1a1a1;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #fff;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #27272a;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    background: #333;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Message Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: rgba(39, 39, 42, 0.5);
    border-bottom: 1px solid #27272a;
}

.admin-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #a1a1a1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tbody tr {
    border-bottom: 1px solid #27272a;
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.admin-table td {
    padding: 12px;
    font-size: 14px;
    color: #d1d5db;
}

.action-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.action-btn.delete {
    background: #ef4444;
}

.action-btn.delete:hover {
    background: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 320px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .admin-table {
        font-size: 12px;
        min-width: 700px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: 280px;
        right: -10px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .admin-table {
        min-width: 500px;
        font-size: 11px;
    }

    .admin-table th,
    .admin-table td {
        padding: 6px 4px;
        font-size: 10px;
    }
}

/* Enhanced Section Styling for Users, Artists, Visitors */
#users .section-card {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(139, 92, 246, 0.08));
    border: 2px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.1);
}

#users .section-card h3 {
    color: #ec4899;
    font-weight: 700;
}

#users .section-card h3 i {
    color: #ec4899;
}

#artists .section-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(139, 92, 246, 0.08));
    border: 2px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
}

#artists .section-card h3 {
    color: #0ea5e9;
    font-weight: 700;
}

#artists .section-card h3 i {
    color: #0ea5e9;
}

#visitors .section-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.08));
    border: 2px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.1);
}

#visitors .section-card h3 {
    color: #06b6d4;
    font-weight: 700;
}

#visitors .section-card h3 i {
    color: #06b6d4;
}

/* Table Header Enhancements */
#users .admin-table thead {
    background: rgba(236, 72, 153, 0.1);
    border-bottom: 2px solid rgba(236, 72, 153, 0.3);
}

#users .admin-table th {
    color: #ec4899;
    font-weight: 700;
}

#artists .admin-table thead {
    background: rgba(14, 165, 233, 0.1);
    border-bottom: 2px solid rgba(14, 165, 233, 0.3);
}

#artists .admin-table th {
    color: #0ea5e9;
    font-weight: 700;
}

#visitors .admin-table thead {
    background: rgba(6, 182, 212, 0.1);
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
}

#visitors .admin-table th {
    color: #06b6d4;
    font-weight: 700;
}

/* Table Row Hover Effects */
#users .admin-table tbody tr:hover {
    background: rgba(236, 72, 153, 0.08);
    border-left: 3px solid #ec4899;
    padding-left: 13px;
}

#artists .admin-table tbody tr:hover {
    background: rgba(14, 165, 233, 0.08);
    border-left: 3px solid #0ea5e9;
    padding-left: 13px;
}

#visitors .admin-table tbody tr:hover {
    background: rgba(6, 182, 212, 0.08);
    border-left: 3px solid #06b6d4;
    padding-left: 13px;
}

/* Search Bar Styling */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
    padding: 12px 16px;
    background: rgba(39, 39, 42, 0.7);
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.search-bar input::placeholder {
    color: #71717a;
}

.search-bar input:focus,
.search-bar select:focus {
    outline: none;
    border-color: #ec4899;
    background: rgba(39, 39, 42, 0.9);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.2);
}

/* Export Button */
.btn-export {
    padding: 12px 16px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

/* Badge Styling */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-primary {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.5);
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.badge-secondary {
    background: rgba(113, 113, 122, 0.2);
    color: #a1a1a1;
    border: 1px solid rgba(113, 113, 122, 0.5);
}

.badge-info {
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
    border: 1px solid rgba(14, 165, 233, 0.5);
}

/* Empty State Styling */
.empty-state-cell {
    text-align: center !important;
    padding: 60px 20px !important;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.03), rgba(139, 92, 246, 0.03));
}

.empty-state-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#artists .empty-state-cell {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03), rgba(139, 92, 246, 0.03));
}

#visitors .empty-state-cell {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.03), rgba(139, 92, 246, 0.03));
}

/* Section-specific Button Colors */
#users .btn-small {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    border: 1px solid #ec4899;
}

#users .btn-small:hover {
    background: rgba(236, 72, 153, 0.3);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

#artists .btn-small {
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
    border: 1px solid #0ea5e9;
}

#artists .btn-small:hover {
    background: rgba(14, 165, 233, 0.3);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

#visitors .btn-small {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border: 1px solid #06b6d4;
}

#visitors .btn-small:hover {
    background: rgba(6, 182, 212, 0.3);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Content Section - Green */
#content .section-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(139, 92, 246, 0.08));
    border: 2px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.1);
}

#content .section-card h3 {
    color: #22c55e;
    font-weight: 700;
}

#content .section-card h3 i {
    color: #22c55e;
}

#content .admin-table thead {
    background: rgba(34, 197, 94, 0.1);
    border-bottom: 2px solid rgba(34, 197, 94, 0.3);
}

#content .admin-table th {
    color: #22c55e;
    font-weight: 700;
}

#content .admin-table tbody tr:hover {
    background: rgba(34, 197, 94, 0.08);
    border-left: 3px solid #22c55e;
    padding-left: 13px;
}

#content .btn-small {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

#content .btn-small:hover {
    background: rgba(34, 197, 94, 0.3);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

#content .empty-state-cell {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.03), rgba(139, 92, 246, 0.03));
}

/* Reports Section - Orange/Yellow */
#reports .section-card {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(139, 92, 246, 0.08));
    border: 2px solid rgba(249, 115, 22, 0.3);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.1);
}

#reports .section-card h3 {
    color: #f97316;
    font-weight: 700;
}

#reports .section-card h3 i {
    color: #f97316;
}

#reports .admin-table thead {
    background: rgba(249, 115, 22, 0.1);
    border-bottom: 2px solid rgba(249, 115, 22, 0.3);
}

#reports .admin-table th {
    color: #f97316;
    font-weight: 700;
}

#reports .admin-table tbody tr:hover {
    background: rgba(249, 115, 22, 0.08);
    border-left: 3px solid #f97316;
    padding-left: 13px;
}

#reports .btn-small {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid #f97316;
}

#reports .btn-small:hover {
    background: rgba(249, 115, 22, 0.3);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

#reports .empty-state-cell {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.03), rgba(139, 92, 246, 0.03));
}

/* Activity Section - Indigo/Purple */
#activity .section-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
}

#activity .section-card h3 {
    color: #6366f1;
    font-weight: 700;
}

#activity .section-card h3 i {
    color: #6366f1;
}

#activity .admin-table thead {
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

#activity .admin-table th {
    color: #6366f1;
    font-weight: 700;
}

#activity .admin-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.08);
    border-left: 3px solid #6366f1;
    padding-left: 13px;
}

#activity .btn-small {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    border: 1px solid #6366f1;
}

#activity .btn-small:hover {
    background: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

#activity .empty-state-cell {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
}

/* Messages Section - Red/Coral */
#messages .section-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(139, 92, 246, 0.08));
    border: 2px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.1);
}

#messages .section-card h3 {
    color: #ef4444;
    font-weight: 700;
}

#messages .section-card h3 i {
    color: #ef4444;
}

#messages .admin-table thead {
    background: rgba(239, 68, 68, 0.1);
    border-bottom: 2px solid rgba(239, 68, 68, 0.3);
}

#messages .admin-table th {
    color: #ef4444;
    font-weight: 700;
}

#messages .admin-table tbody tr:hover {
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid #ef4444;
    padding-left: 13px;
}

#messages .btn-small {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

#messages .btn-small:hover {
    background: rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

#messages .empty-state-cell {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.03), rgba(139, 92, 246, 0.03));
}

/* Settings Section - Slate/Gray */
#settings .section-card {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.08), rgba(139, 92, 246, 0.08));
    border: 2px solid rgba(100, 116, 139, 0.3);
    box-shadow: 0 8px 32px rgba(100, 116, 139, 0.1);
}

#settings .section-card h3 {
    color: #64748b;
    font-weight: 700;
}

#settings .section-card h3 i {
    color: #64748b;
}

#settings .admin-table thead {
    background: rgba(100, 116, 139, 0.1);
    border-bottom: 2px solid rgba(100, 116, 139, 0.3);
}

#settings .admin-table th {
    color: #64748b;
    font-weight: 700;
}

#settings .admin-table tbody tr:hover {
    background: rgba(100, 116, 139, 0.08);
    border-left: 3px solid #64748b;
    padding-left: 13px;
}

#settings .btn-small {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
    border: 1px solid #64748b;
}

#settings .btn-small:hover {
    background: rgba(100, 116, 139, 0.3);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

#settings .empty-state-cell {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.03), rgba(139, 92, 246, 0.03));
}

/* Dashboard Section - Multi-gradient */
#dashboard .section-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(139, 92, 246, 0.08));
    border: 2px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.1);
}

#dashboard .section-card h3 {
    color: #a855f7;
    font-weight: 700;
}

#dashboard .section-card h3 i {
    color: #a855f7;
}

/* Enhanced stat cards with gradients */
.stat-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%) !important;
    border: 2px solid rgba(236, 72, 153, 0.25) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.4), transparent);
}

.stat-card:nth-child(2) {
    border-color: rgba(14, 165, 233, 0.3) !important;
}

.stat-card:nth-child(3) {
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.stat-card:nth-child(4) {
    border-color: rgba(249, 115, 22, 0.3) !important;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(236, 72, 153, 0.5) !important;
}

/* Top Picks Section Styles */
#topPicksContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.top-pick-card {
    background: rgba(39, 39, 42, 0.5);
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.top-pick-card:hover {
    background: rgba(39, 39, 42, 0.7);
    border-color: #f97316;
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.2);
    transform: translateY(-4px);
}

.top-pick-rank {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.top-pick-content {
    padding-right: 50px;
}

.top-pick-content h4 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 16px;
}

.top-pick-content p {
    margin-bottom: 12px;
    color: #a1a1a1;
    font-size: 13px;
}

.engagement-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #27272a;
}

.engagement-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #a1a1a1;
}

.engagement-stats i {
    color: #f97316;
}

/* Enhanced table for content with engagement metrics */
#contentTable tbody tr {
    transition: all 0.2s ease;
}

#contentTable tbody tr:hover {
    background-color: rgba(249, 115, 22, 0.05);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.badge-warning {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.btn-success:hover {
    background: rgba(34, 197, 94, 0.3);
}

.btn-warning {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid #f97316;
}

.btn-warning:hover {
    background: rgba(249, 115, 22, 0.3);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Mobile Responsive Styles */

/* Hamburger Menu Button */
.admin-hamburger {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-hamburger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.admin-hamburger:active {
    transform: scale(0.95);
}

/* Sidebar Overlay for Mobile */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.admin-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Breakpoint: Tablets and Below (768px) */
@media (max-width: 768px) {
    /* Show hamburger button on mobile */
    .admin-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Main admin container switches to single column */
    .admin-container {
        grid-template-columns: 1fr;
        padding: 0;
    }

    /* Sidebar positioning for mobile */
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .admin-sidebar.active {
        left: 0;
    }

    /* Main content adjusts for single column */
    .admin-main {
        grid-column: 1;
        padding: 20px;
        margin-top: 60px;
    }

    /* Show overlay when sidebar is active */
    .admin-sidebar-overlay {
        display: block;
    }

    .admin-sidebar-overlay.active {
        opacity: 1;
    }

    /* Adjust navigation items for better spacing */
    .admin-nav-item {
        padding: 14px 16px;
        transition: all 0.2s ease;
        cursor: pointer;
        touch-action: manipulation;
        min-height: 44px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Adjust content cards for mobile */
    .admin-card {
        border-radius: 8px;
        margin-bottom: 16px;
    }

    /* Adjust table responsiveness */
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Stack grid items vertically on mobile */
    .admin-grid {
        grid-template-columns: 1fr;
    }

    /* Adjust modals for mobile */
    .admin-modal {
        width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Adjust buttons on mobile */
    .btn {
        min-height: 44px;
        font-size: 14px;
        padding: 10px 14px;
    }

    /* Improve touch targets for small buttons on mobile */
    .btn-small {
        min-height: 40px;
        padding: 8px 14px;
        font-size: 12px;
    }

    .btn-edit, .btn-disable, .btn-reset, .btn-enable {
        min-height: 40px;
        padding: 8px 12px;
    }

    /* Adjust form inputs for better touch targets */
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        min-height: 44px;
        padding: 10px 12px;
    }
}

/* Small Mobile Devices (Below 480px) */
@media (max-width: 480px) {
    .admin-hamburger {
        width: 44px;
        height: 44px;
        font-size: 16px;
        top: 12px;
        left: 12px;
        min-height: 44px;
    }

    .admin-main {
        padding: 16px;
        margin-top: 60px;
    }

    .admin-sidebar {
        width: 250px;
        left: -250px;
    }

    .admin-card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .btn {
        min-height: 40px;
        font-size: 13px;
        padding: 8px 12px;
    }

    .btn-small {
        min-height: 38px;
        padding: 6px 12px;
    }

    h2, h3 {
        font-size: 18px;
    }

    .admin-table {
        font-size: 12px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 4px;
    }
}

/* Tablet Devices (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .admin-sidebar {
        width: 240px;
    }

    .admin-container {
        grid-template-columns: 240px 1fr;
    }
}

/* Mobile-Friendly Table Responsive Styles */
@media (max-width: 768px) {
    /* Improve table scrolling on mobile */
    .admin-table {
        min-width: 700px;
        font-size: 11px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 6px;
        white-space: nowrap;
    }

    /* Ensure scroll containers work smoothly on iOS */
    div[style*="overflow-x: auto"] {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        border-radius: 8px;
    }

    /* Add visual indicator for scrollable content */
    div[style*="overflow-x: auto"]::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.03) 100%);
        pointer-events: none;
        border-radius: 0 8px 8px 0;
    }

    /* Improve table header visibility */
    .admin-table thead {
        background: rgba(39, 39, 42, 0.7);
        position: sticky;
        top: 0;
        z-index: 10;
    }

    /* Better action buttons on mobile */
    .admin-table .action-btn,
    .admin-table button {
        padding: 6px 10px;
        font-size: 11px;
        min-width: auto;
    }

    /* Section cards with better spacing */
    .section-card {
        padding: 15px;
    }

    /* Search bar responsive */
    .search-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .search-bar input,
    .search-bar select,
    .search-bar button {
        flex: 1;
        min-width: 120px;
        font-size: 12px;
    }

    /* Stats row responsive */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-mini {
        padding: 16px;
    }

    .stat-mini .stat-label {
        font-size: 11px;
    }

    .stat-mini .stat-value {
        font-size: 26px;
    }
}

/* Extra small devices (max 480px) */
@media (max-width: 480px) {
    .admin-table {
        min-width: 500px;
        font-size: 10px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 4px;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar input,
    .search-bar select,
    .search-bar button {
        width: 100%;
        min-width: unset;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

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

/* Pagination Controls */
.pagination-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px;
    background: rgba(30, 30, 35, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.pagination-btn {
    padding: 6px 10px;
    min-width: 34px;
    background: rgba(120, 120, 128, 0.15);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(120, 120, 128, 0.3);
    border-color: rgba(148, 163, 184, 0.4);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 13px;
    min-width: 120px;
    text-align: center;
}