/**
 * Movie Verse - Premium Glassmorphism Theme CSS
 * Palette: Space Black, Deep Indigo, Vivid Violet, Neon Cyan, Electric Rose
 */

:root {
    --bg-dark: #07070f;
    --bg-deep: #0e0e1a;
    --glass-bg: rgba(18, 18, 32, 0.55);
    --glass-bg-hover: rgba(26, 26, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    
    --text-primary: #f0f0fa;
    --text-secondary: #a0a0c0;
    --text-muted: #6e6e8c;
    
    --color-cyan: #00f0ff;
    --color-violet: #8a2be2;
    --color-rose: #ff007f;
    --color-purple: #c71585;
    --color-gold: #ffd700;
    
    --gradient-primary: linear-gradient(135deg, #8a2be2 0%, #00f0ff 100%);
    --gradient-secondary: linear-gradient(135deg, #ff007f 0%, #8a2be2 100%);
    --gradient-card: linear-gradient(145deg, rgba(20, 20, 35, 0.6) 0%, rgba(10, 10, 20, 0.4) 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 60%);
}

/* Global Styles */
body.admin-body {
    background-color: var(--bg-dark);
    background-image: var(--gradient-glow), 
                      radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.04) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(255, 0, 127, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-text, .section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Text Gradients */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-rose {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #ff007f 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Containers */
.glass-card {
    background: var(--gradient-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card-hover:hover {
    border-color: var(--glass-highlight);
    box-shadow: 0 12px 40px 0 rgba(138, 43, 226, 0.15);
    transform: translateY(-4px);
}

/* Sidebar Navigation */
.sidebar {
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    min-height: 100vh;
    padding-bottom: 30px;
    z-index: 1000;
}

.sidebar-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.brand-icon {
    font-size: 1.8rem;
}

.user-info-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-block;
    color: var(--text-secondary);
}

.nav-divider {
    border-top: 1px solid var(--glass-border);
    margin: 15px 20px;
    opacity: 0.6;
}

/* Nav Links Styling */
.sidebar .nav-link {
    color: var(--text-secondary);
    padding: 12px 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
}

.sidebar .nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--color-violet);
    padding-left: 28px;
}

.sidebar .nav-link.active {
    color: var(--text-primary);
    background: rgba(138, 43, 226, 0.12);
    border-left-color: var(--color-cyan);
    font-weight: 600;
}

.sidebar .nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sidebar .nav-link:hover .nav-icon {
    transform: scale(1.15);
}

/* Stat Box Badge Counters */
.pending-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 0.85; }
}

/* Premium Buttons */
.btn-premium {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.btn-premium:hover {
    background: var(--gradient-primary);
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
    color: white;
}

.btn-premium-secondary {
    background: var(--gradient-secondary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
}

.btn-premium-secondary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
    color: white;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.25s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-highlight);
    color: white;
}

/* Form Inputs styling */
.form-control, .form-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 11px 16px;
    transition: all 0.25s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--color-cyan);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    outline: none;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Glassmorphism Table */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.glass-table {
    margin-bottom: 0;
    color: var(--text-primary);
}

.glass-table th {
    background: rgba(20, 20, 40, 0.8) !important;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 2px solid var(--glass-border);
    padding: 16px;
}

.glass-table td {
    background: rgba(12, 12, 26, 0.4) !important;
    border-bottom: 1px solid var(--glass-border);
    padding: 16px;
    vertical-align: middle;
}

.glass-table tr:hover td {
    background: rgba(26, 26, 50, 0.5) !important;
}

/* Chart Canvas Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Real-time Counter Stats */
.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

.stat-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Login Glassmorphism Styles */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-dark);
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Badges styling */
.badge-vip {
    background: linear-gradient(135deg, var(--color-gold) 0%, #ff8c00 100%);
    color: #000;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.badge-active {
    background: rgba(0, 240, 255, 0.15);
    color: var(--color-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.badge-banned {
    background: rgba(255, 0, 127, 0.15);
    color: var(--color-rose);
    border: 1px solid rgba(255, 0, 127, 0.3);
}

.badge-pending {
    background: rgba(255, 215, 0, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Media Queries */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        position: fixed;
        width: 100%;
        bottom: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    }
    .sidebar-sticky {
        height: auto;
    }
    .main-content {
        margin-top: 60px;
    }
}
