/* Admin Dashboard Styles */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
    background: #050505;
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    min-width: 280px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(5, 5, 5, 0.98) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.admin-sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.admin-sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #00dc82 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.5px;
}

.admin-sidebar-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
    margin-left: 2px;
}

.admin-sidebar-menu {
    padding: 0 16px;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.admin-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00dc82, #007AFF);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.admin-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transform: translateX(4px);
}

.admin-menu-item.active {
    background: linear-gradient(135deg, rgba(0, 220, 130, 0.1), rgba(0, 122, 255, 0.05));
    color: #00dc82;
    border: 1px solid rgba(0, 220, 130, 0.2);
}

.admin-menu-item.active::before {
    transform: scaleY(1);
}

.admin-menu-item i {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-menu-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: rgba(0, 220, 130, 0.2);
    color: #00dc82;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Sidebar Footer */
.admin-sidebar-footer {
    padding: 24px 16px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 12px;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00dc82, #007AFF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #050505;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.admin-user-details {
    flex: 1;
    min-width: 0;
}

.admin-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-role {
    font-size: 0.7rem;
    color: #64748b;
}

.admin-sidebar-footer .admin-menu-item {
    margin-bottom: 0;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 0;
    min-height: 100vh;
    background: #050505;
}

.admin-topbar {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(15, 15, 15, 0.95) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.admin-topbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-content {
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-section {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.6) 0%, rgba(5, 5, 5, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.admin-section-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* Stats Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: linear-gradient(135deg, rgba(0, 220, 130, 0.08), rgba(0, 122, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 220, 130, 0.15);
    border-color: rgba(0, 220, 130, 0.3);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 220, 130, 0.2), rgba(0, 122, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1;
}

.admin-stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Mobile Sidebar Toggle */
.admin-sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.admin-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 220, 130, 0.3);
}

/* Light Mode */
[data-theme="light"] .admin-dashboard {
    background: #ffffff;
}

[data-theme="light"] .admin-sidebar {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-right: 1px solid rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .admin-sidebar-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .admin-menu-item {
    color: #475569;
}

[data-theme="light"] .admin-menu-item:hover {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
}

[data-theme="light"] .admin-menu-item.active {
    background: linear-gradient(135deg, rgba(0, 220, 130, 0.12), rgba(0, 122, 255, 0.08));
    color: #00b36b;
    border-color: rgba(0, 220, 130, 0.25);
}

[data-theme="light"] .admin-topbar {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .admin-topbar-title {
    color: #0f172a;
}

[data-theme="light"] .admin-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.6) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .admin-section-title {
    color: #0f172a;
}

[data-theme="light"] .admin-stat-card {
    background: linear-gradient(135deg, rgba(0, 220, 130, 0.06), rgba(0, 122, 255, 0.04));
    border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .admin-stat-value {
    color: #0f172a;
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-sidebar-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 260px;
        min-width: 260px;
    }
    
    .admin-content {
        padding: 20px;
    }
    
    .admin-section {
        padding: 20px;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

