@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- STUDIO DARK MODE (Ultra Minimalist) --- */
body {
    background-color: #09090b; /* Zinc 950 */
    color: #e4e4e7; /* Zinc 200 */
    font-family: 'Inter', sans-serif;
    margin: 0; padding: 0; height: 100vh; width: 100vw;
    display: flex; justify-content: center; align-items: center; overflow: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* --- TOP RIGHT TWITCH UI --- */
.top-auth-bar { position: absolute; top: 30px; right: 40px; z-index: 100; }
.twitch-btn {
    background: #9146FF; color: white; text-decoration: none; padding: 10px 16px;
    border-radius: 8px; font-size: 13px; font-weight: 700; display: flex; align-items: center;
    transition: 0.2s ease; box-shadow: 0 4px 12px rgba(145, 70, 255, 0.3);
}
.twitch-btn:hover { background: #a970ff; transform: translateY(-2px); }

.profile-trigger {
    background: #18181b; border: 1px solid #27272a; padding: 6px 12px 6px 6px;
    border-radius: 50px; display: flex; align-items: center; gap: 10px; cursor: pointer;
    transition: 0.2s ease;
}
.profile-trigger:hover { background: #27272a; border-color: #3f3f46; }
.profile-trigger img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.profile-trigger span { font-size: 13px; font-weight: 600; color: #fff; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 999; justify-content: center; align-items: center; }
.modal-content { background: #09090b; border: 1px solid #27272a; border-radius: 16px; padding: 40px; width: 320px; text-align: center; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.5); animation: swipeUp 0.3s ease; }
.close-btn { position: absolute; top: 15px; right: 15px; background: transparent; border: none; color: #a1a1aa; font-size: 24px; cursor: pointer; }
.close-btn:hover { color: #fff; }
#modal-avatar { width: 80px; height: 80px; border-radius: 50%; border: 2px solid #27272a; margin-bottom: 15px; }
.stats-box { background: #18181b; border: 1px solid #27272a; border-radius: 12px; padding: 20px; margin: 25px 0; }
.stats-box h3 { font-size: 11px; color: #a1a1aa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.stats-box h1 { font-size: 36px; color: #fff; margin: 0; }

/* --- CORE WRAPPERS --- */
.main-wrapper, .dashboard-wrapper {
    position: relative; z-index: 10; /* Forces the glass ABOVE the orbs */
    background: rgba(9, 9, 11, 0.75); /* Added transparency */
    backdrop-filter: blur(30px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
    border-radius: 24px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(124, 58, 237, 0.15);
    display: flex; overflow: hidden;
}

.main-wrapper { width: 90vw; max-width: 1050px; height: 85vh; max-height: 850px; }
.dashboard-wrapper { width: 95vw; max-width: 1400px; height: 90vh; flex-direction: column; }

.panel-section { width: 50%; height: 100%; display: flex; flex-direction: column; position: relative; }

.bio-side { 
    border-right: 1px solid #27272a; 
    padding: 50px 40px; 
    text-align: center; 
    align-items: center; 
    /* FIXED: Allows the bio side to scroll so buttons never get cut off */
    justify-content: flex-start; 
    background: transparent; 
    overflow-y: auto; 
} 

.content-side { 
    padding: 40px; 
    background: rgba(12, 12, 14, 0.5); 
    overflow: hidden; 
}

/* BUG FIX: Queue cutoff fix */
#public-queue-list { flex: 1; overflow-y: auto; padding-right: 10px; padding-bottom: 120px; }
#submission-form { flex: 1; overflow-y: auto; padding-right: 10px; padding-bottom: 80px; }

@media (max-width: 800px) {
    .main-wrapper, .dashboard-wrapper { flex-direction: column; height: 100vh; border-radius: 0; border: none; overflow-y: auto; }
    .panel-section { width: 100%; height: auto; overflow: visible; padding: 30px 20px; }
    .bio-side { justify-content: flex-start; border-right: none; border-bottom: 1px solid #27272a; }
    .top-auth-bar { top: 15px; right: 15px; }
}

/* --- TYPOGRAPHY & AVATARS --- */
h1, h2, h3 { margin-top: 0; font-weight: 700; letter-spacing: -0.5px; color: #fff; }
.gradient-text { color: #fff; text-shadow: 0 0 20px rgba(255,255,255,0.1); }
p { color: #a1a1aa; line-height: 1.6; font-size: 14px; }

.profile-pic img {
    width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
    border: 1px solid #3f3f46; box-shadow: 0 10px 30px rgba(0,0,0,0.5); margin-bottom: 20px;
}

.status-badge {
    display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px; 
    border-radius: 50px; font-size: 11px; font-weight: 700; letter-spacing: 1px; 
    text-transform: uppercase; margin-bottom: 25px;
}
.status-open { background: rgba(34, 197, 94, 0.1); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }
.status-closed { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }

/* --- CLEAN INPUTS --- */
label { font-weight: 600; font-size: 12px; color: #a1a1aa; margin-bottom: 8px; }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], select, input[type="file"], textarea {
    width: 100%; padding: 14px 16px; margin-bottom: 24px;
    background: #18181b; border: 1px solid #27272a;
    border-radius: 8px; color: #fff; font-family: 'Inter', sans-serif; font-weight: 400;
    box-sizing: border-box; outline: none; font-size: 14px; transition: 0.2s ease;
}

input:focus, textarea:focus, select:focus { background: #09090b; border-color: #06b6d4; box-shadow: 0 0 0 1px #06b6d4; }
textarea { resize: vertical; min-height: 80px; }

/* TABS */
.type-tabs { display: flex; background: #18181b; border-radius: 8px; padding: 4px; margin-bottom: 24px; border: 1px solid #27272a; }
.type-tab { flex: 1; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; color: #71717a; cursor: pointer; border-radius: 6px; transition: 0.2s; }
.type-tab.active { background: #27272a; color: #fff; }
.form-group { display: none; }
.form-group.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* --- PRIORITY MODULES --- */
.priority-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 30px; }
.priority-tab { background: #18181b; border: 1px solid #27272a; border-radius: 12px; padding: 16px 10px; text-align: center; cursor: pointer; transition: 0.2s ease; display: flex; flex-direction: column; gap: 4px; }
.priority-tab:hover { background: #27272a; }
.priority-tab.active { border-color: #a855f7; background: rgba(168,85,247,0.1); }
.priority-tab.skip.active { border-color: #06b6d4; background: rgba(6,182,212,0.1); }
.priority-tab.super.active { border-color: #ef4444; background: rgba(239,68,68,0.1); }
.priority-tab.mix.active { border-color: #facc15; background: rgba(250,204,21,0.1); }

.prio-title { font-weight: 700; font-size: 14px; color: #fff; }
.prio-desc { font-size: 11px; color: #a1a1aa; font-weight: 600; text-transform: uppercase; }

/* --- SOLID BUTTONS --- */
button { border: none; border-radius: 8px; font-family: 'Inter', sans-serif; font-weight: 600; cursor: pointer; transition: 0.2s ease; box-sizing: border-box; }
.btn-full { width: 100%; padding: 14px; font-size: 14px; margin-bottom: 24px; } 

.btn-primary { background: #fff; color: #000; padding: 12px 20px; font-size: 14px; }
.btn-primary:hover:not(:disabled) { background: #d4d4d8; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-outline { background: transparent; border: 1px solid #3f3f46; color: #d4d4d8; padding: 10px 14px; font-size: 13px; }
.btn-outline:hover { background: #27272a; color: #fff; border-color: #52525b; }

/* --- CLEAN QUEUE CARDS --- */
.public-queue-item, .queue-item { background: #18181b; border: 1px solid #27272a; border-radius: 12px; margin-bottom: 12px; box-sizing: border-box; }
.public-queue-item { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid #a855f7; }
.public-queue-item.vip { border-left-color: #06b6d4; }
.queue-item { padding: 24px; }

.live-pulse { display: inline-block; width: 8px; height: 8px; background-color: #ef4444; border-radius: 50%; margin-right: 8px; animation: extremePulse 2s infinite; }
@keyframes extremePulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
@keyframes swipeUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* --- THE CYBER-PLAYER --- */
.ultra-player { display: flex; align-items: center; gap: 15px; background: #09090b; padding: 12px 16px; border-radius: 8px; border: 1px solid #27272a; margin-top: 15px; box-sizing: border-box; }
.ultra-play-btn { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #000; display: flex; justify-content: center; align-items: center; flex-shrink: 0; padding: 0; font-size: 12px; transition: 0.2s; }
.ultra-play-btn:hover { background: #d4d4d8; }
.ultra-timeline { flex: 1; height: 4px; -webkit-appearance: none; background: #27272a; border-radius: 2px; outline: none; cursor: pointer; }
.ultra-timeline::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; background: #fff; border-radius: 50%; }
.ultra-time { font-size: 12px; color: #a1a1aa; font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 75px; text-align: right; }

/* --- ADMIN DASHBOARD --- */
.dashboard-header { background: #09090b; border-bottom: 1px solid #27272a; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.tabs { display: flex; gap: 20px; }
.tab-btn { background: transparent; color: #a1a1aa; font-size: 14px; padding: 20px 10px; width: auto; font-weight: 600; border-bottom: 2px solid transparent; border-radius: 0; transition: 0.2s; }
.tab-btn:hover { color: #fff; }
.tab-btn.active { color: #fff; border-bottom: 2px solid #fff; }

.dashboard-content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 40px; box-sizing: border-box; }
.tab-content { display: none !important; }
.tab-content.active { display: block !important; animation: fadeIn 0.3s ease; }
.queue-layout { display: grid; grid-template-columns: 3fr 1fr; gap: 30px; height: 100%; box-sizing: border-box; }

.panel { background: #09090b; padding: 30px; border-radius: 16px; border: 1px solid #27272a; box-sizing: border-box; }

.stats-row { display: flex; gap: 20px; margin-bottom: 30px; width: 100%; box-sizing: border-box; }
.stat-card { flex: 1; background: #18181b; padding: 25px; border-radius: 12px; text-align: center; border: 1px solid #27272a; box-sizing: border-box; }
.stat-card h2 { margin: 0; font-size: 40px; color: #fff; font-weight: 700; }

.admin-menu-btn { width: 100%; background: #18181b; border: 1px solid #27272a; color: #fff; padding: 20px; border-radius: 10px; font-size: 15px; font-weight: 600; text-align: left; display: flex; justify-content: space-between; margin-bottom: 12px; transition: 0.2s ease; box-sizing: border-box; align-items: center; }
.admin-menu-btn:hover { background: #27272a; }

/* COMPACT CARDS */
.compact-vip, .staff-card, .log-item { background: #18181b; border-radius: 8px; border: 1px solid #27272a; padding: 12px 16px; margin-bottom: 8px; }
.staff-card { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.staff-card select, .staff-card button { width: auto; margin: 0; padding: 6px 10px; font-size: 11px; }

.log-item { border-left: 3px solid #7c3aed; display: flex; align-items: center; gap: 15px; }
.log-content { display: flex; flex-direction: column; gap: 4px; }
.log-time { color: #71717a; font-size: 11px; text-transform: uppercase; }
.log-action { font-size: 13px; font-weight: 600; color: #fff; }
.log-details { font-size: 12px; color: #a1a1aa; }

.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; border: 2px solid #18181b; }
.dot-online { background-color: #4ade80; }
.dot-offline { background-color: #ef4444; }

.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; width: 100%; }
.social-btn { text-decoration: none; color: #000; background: #fff; padding: 10px 20px; border-radius: 8px; font-size: 12px; font-weight: 700; transition: 0.2s ease; display: inline-block; }
.social-btn:hover { background: #d4d4d8; }

/* --- ANIMATED BACKGROUND ORBS --- */
.bg-animation {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
    z-index: 0; pointer-events: none; overflow: hidden;
}
.orb { 
    position: absolute; border-radius: 50%; filter: blur(120px); 
    opacity: 0.35; animation: float 20s infinite ease-in-out alternate; 
}
.orb-1 { width: 45vw; height: 45vw; background: #7c3aed; top: -15%; left: -10%; }
.orb-2 { width: 40vw; height: 40vw; background: #06b6d4; bottom: -15%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 35vw; height: 35vw; background: #facc15; top: 30%; left: 40%; animation-delay: -10s; opacity: 0.15; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* --- RESTORING THE SAUCE & COLORFUL VIBES --- */

@keyframes roleShine { 
    0% { background-position: 0% 50%; } 
    50% { background-position: 100% 50%; } 
    100% { background-position: 0% 50%; } 
}

.role-text { 
    background-size: 200% auto !important; 
    color: transparent !important; 
    -webkit-background-clip: text !important; 
    background-clip: text !important;
    animation: roleShine 4s linear infinite !important; 
    font-weight: 900 !important; 
}

.role-1 { background-image: linear-gradient(to right, #4ade80, #10b981, #34d399, #4ade80) !important; }
.role-2 { background-image: linear-gradient(to right, #60a5fa, #3b82f6, #38bdf8, #60a5fa) !important; }
.role-3 { background-image: linear-gradient(to right, #c084fc, #a855f7, #e879f9, #c084fc) !important; }
.role-4 { background-image: linear-gradient(to right, #06b6d4, #8b5cf6, #3b82f6, #06b6d4) !important; }
.role-5 { background-image: linear-gradient(to right, #facc15, #f59e0b, #ef4444, #facc15) !important; }

/* --- ENHANCED COLORFUL QUEUE CARDS --- */
.queue-item {
    background: linear-gradient(145deg, #18181b, #1f1b2e); /* Subtle dark-to-purple gradient */
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-left: 4px solid #a855f7; /* Bold purple left edge */
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Vibrant Hover State */
.queue-item:hover {
    border-color: rgba(6, 182, 212, 0.5); /* Shifts to Cyan */
    border-left: 4px solid #06b6d4; /* Cyan left edge */
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.25); /* Cyan neon glow */
    transform: translateY(-3px);
}

/* --- RESTORED SECONDARY & LOGOUT BUTTONS --- */
.secondary-btn { 
    background: #18181b; border: 1px solid #3f3f46; color: #e4e4e7; 
    padding: 10px 16px; font-size: 13px; border-radius: 8px; font-weight: 600; 
    cursor: pointer; transition: 0.2s ease; 
}
.secondary-btn:hover { 
    background: #27272a; border-color: #52525b; color: #fff; transform: translateY(-2px); 
}

/* Specific styling for the Header Log Out Button */
.dashboard-header .secondary-btn { 
    background: rgba(239, 68, 68, 0.1) !important; 
    border-color: rgba(239, 68, 68, 0.3) !important; 
    color: #ef4444 !important; 
}
.dashboard-header .secondary-btn:hover {
    background: #ef4444 !important; color: #000 !important; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* --- POLISHED STUDIO UI UPGRADES --- */

/* Modernized Review Done Button */
.review-done-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    float: right;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.review-done-btn:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

/* Streamlined VIP Compact Layout */
.compact-vip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.compact-vip:hover {
    background: rgba(255, 255, 255, 0.06);
}

.vip-text {
    font-size: 12px;
    color: #d4d4d8;
    font-weight: 500;
    font-family: monospace;
}

/* --- VIBRANT QUICK VIP PANEL & BUTTON --- */
.vip-panel {
    background: linear-gradient(145deg, #0d0f17, #081a26) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1) !important;
    position: relative;
    overflow: hidden;
}

/* Glowing Diamond Header */
.vip-panel h2 {
    color: #22d3ee;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* High-Impact Add VIP Button */
.btn-vip {
    background: linear-gradient(135deg, #06b6d4, #3b82f6) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
    transition: all 0.25s ease !important;
}

.btn-vip:hover {
    background: linear-gradient(135deg, #22d3ee, #60a5fa) !important;
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.6);
    transform: translateY(-2px);
}

.btn-vip:active {
    transform: translateY(0);
}

/* Custom Styled VIP Delete Button */
.btn-remove-vip {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 6px;
    width: 26px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.btn-remove-vip:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Clean Panel Details & Summaries */
details summary {
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 0;
    transition: color 0.2s;
}

details summary:hover {
    color: #fff;
}