@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- UNIVERSAL APP LOCK --- */
body {
    background-color: #000000;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(124, 58, 237, 0.15), transparent 35%),
        radial-gradient(circle at 85% 70%, rgba(6, 182, 212, 0.1), transparent 35%);
    color: #f4f4f5; 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: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* --- THE MAIN APP WRAPPER (Public Hub) --- */
.main-wrapper {
    background: rgba(10, 10, 12, 0.7); backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; 
    box-shadow: 0 40px 80px rgba(0,0,0,1), inset 0 1px 0 rgba(255,255,255,0.1);
    width: 90vw; max-width: 1050px; height: 85vh; max-height: 850px; 
    display: flex; overflow: hidden;
}

.panel-section { width: 50%; height: 100%; display: flex; flex-direction: column; overflow-y: auto; position: relative; }
.bio-side { border-right: 1px solid rgba(255,255,255,0.08); padding: 50px 40px; text-align: center; align-items: center; background: rgba(0,0,0,0.2); overflow-x: hidden; }
.content-side { padding: 40px; background: rgba(0,0,0,0.4); }

@media (max-width: 800px) {
    .main-wrapper { flex-direction: column; max-height: 95vh; }
    .panel-section { width: 100%; padding: 25px; }
    .bio-side { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* --- TYPOGRAPHY & BIO --- */
h1, h2, h3 { margin-top: 0; font-weight: 800; letter-spacing: -0.5px; word-break: break-word; }
.gradient-text { background: linear-gradient(to right, #ffffff, #a1a1aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
p { color: #a1a1aa; line-height: 1.6; font-size: 14px; word-break: break-word; overflow-wrap: anywhere; width: 100%; }

.profile-pic img {
    width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1); margin-bottom: 25px;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.2);
}

.status-badge {
    display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px; 
    border-radius: 50px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; 
    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.3); }
.status-closed { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* --- FORMS & TABS --- */
label { font-weight: 700; font-size: 11px; color: #71717a; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], select, input[type="file"], textarea {
    width: 100%; padding: 14px 16px; margin-bottom: 20px;
    background-color: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; color: #fff; font-family: 'Inter', sans-serif;
    box-sizing: border-box; outline: none; transition: 0.2s; font-size: 14px;
}
input:focus, textarea:focus, select:focus { border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15); }
textarea { resize: vertical; min-height: 70px; }

.type-tabs { display: flex; background: rgba(0,0,0,0.4); border-radius: 10px; padding: 6px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.05); }
.type-tab { flex: 1; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; color: #71717a; cursor: pointer; border-radius: 8px; transition: 0.2s; }
.type-tab.active { background: rgba(255,255,255,0.1); color: #fff; }
.form-group { display: none; }
.form-group.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* --- PRIORITY BUTTONS --- */
.priority-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 25px; }
.priority-tab {
    background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 15px 10px; text-align: center; cursor: pointer;
    transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; gap: 5px;
}
.priority-tab:hover { background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.priority-tab.active { border-color: #a855f7; background: rgba(168, 85, 247, 0.1); box-shadow: 0 0 20px rgba(168,85,247,0.2); }
.priority-tab.skip.active { border-color: #06b6d4; background: rgba(6, 182, 212, 0.1); box-shadow: 0 0 20px rgba(6,182,212,0.2); }
.priority-tab.super.active { border-color: #ef4444; background: rgba(239, 68, 68, 0.1); box-shadow: 0 0 20px rgba(239,68,68,0.2); }
/* NEW MIX & MASTER TIER */
.priority-tab.mix.active { border-color: #facc15; background: rgba(250, 204, 21, 0.1); box-shadow: 0 0 20px rgba(250,204,21,0.2); }

.prio-title { font-weight: 800; font-size: 14px; color: #fff; }
.prio-desc { font-size: 11px; color: #a1a1aa; font-weight: 700; text-transform: uppercase; }

/* --- BUTTONS --- */
button { border: none; border-radius: 10px; font-family: 'Inter', sans-serif; font-weight: 700; cursor: pointer; transition: 0.2s; box-sizing: border-box; }
.btn-full { width: 100%; padding: 16px; font-size: 15px; margin-bottom: 20px; } 
/* BUG FIX: Added base padding and font-size so it is never tiny again */
.btn-primary { background: linear-gradient(135deg, #7c3aed, #06b6d4); color: #fff; padding: 14px 24px; font-size: 15px; }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4); filter: brightness(1.1); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: #d4d4d8; padding: 12px 15px; font-size: 13px; }
.btn-outline:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* ADMIN SPECIFIC BUTTONS FIX */
button.secondary-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 12px 20px; font-size: 14px; width: auto; border-radius: 10px; margin-top: 10px; }
button.secondary-btn:hover { background: rgba(255,255,255,0.1); }
button.remove-btn { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; padding: 8px 14px; font-size: 12px; border-radius: 8px; width: auto; margin: 0; }
button.remove-btn:hover { background: #ef4444; color: #fff; }

/* SOCIAL LINKS */
.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 25px; width: 100%; }
.social-btn { text-decoration: none; color: white; padding: 10px 20px; border-radius: 50px; font-size: 12px; font-weight: 700; transition: 0.2s; border: 1px solid rgba(255,255,255,0.1); display: inline-block; }
.social-btn:hover { transform: translateY(-2px); filter: brightness(1.2); }

/* --- PUBLIC LIVE TRACKER --- */
.public-queue-item {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-left: 3px solid #a855f7;
    padding: 15px 18px; border-radius: 12px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center;
    box-sizing: border-box;
}
.public-queue-item.vip { border-left-color: #06b6d4; background: rgba(6, 182, 212, 0.05); }
.live-pulse { display: inline-block; width: 10px; height: 10px; background-color: #ef4444; border-radius: 50%; box-shadow: 0 0 10px #ef4444; margin-right: 10px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* --- DASHBOARD / ADMIN --- */
.dashboard-wrapper {
    width: 95vw; max-width: 1400px; height: 90vh;
    background: rgba(10, 10, 12, 0.8); backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,1);
}
.dashboard-header { background: rgba(0, 0, 0, 0.6); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0 40px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.tabs { display: flex; gap: 30px; }
.tab-btn { background: transparent; color: #71717a; font-size: 15px; padding: 25px 10px; width: auto; font-weight: 700; border-bottom: 3px solid transparent; border-radius: 0; }
.tab-btn:hover { color: #fff; }
.tab-btn.active { color: #a855f7; border-bottom: 3px solid #a855f7; }

.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.4s; }
.queue-layout { display: grid; grid-template-columns: 3fr 1fr; gap: 30px; height: 100%; box-sizing: border-box; }

.panel { background: rgba(255,255,255,0.02); padding: 35px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); box-sizing: border-box; }

/* VIP OVERFLOW */
.vip-panel { overflow: hidden; display: flex; flex-direction: column; width: 100%; }
#vip-list { flex: 1; overflow-y: auto; padding-right: 5px; width: 100%; overflow-x: hidden; }
.compact-vip { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 10px 14px; background: rgba(0,0,0,0.4); border-radius: 10px; 
    margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.05);
    width: 100%; box-sizing: border-box; gap: 10px; overflow: hidden;
}
.vip-text { 
    flex: 1 1 auto; min-width: 0; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
    color: #e4e4e7; font-size: 13px; font-weight: 600; display: block;
}
.btn-remove-vip { 
    flex-shrink: 0; padding: 6px 10px; font-size: 11px; width: auto; 
    background: rgba(239, 68, 68, 0.15); color: #f87171; margin: 0; border-radius: 6px; border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-remove-vip:hover { background: #ef4444; color: #fff; }

/* Dashboard Queue Items */
.queue-item { position: relative; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); margin-bottom: 15px; padding: 25px; border-radius: 16px; transition: 0.2s; box-sizing: border-box; }
.queue-item:hover { border-color: rgba(168, 85, 247, 0.4); background: rgba(255,255,255,0.03); }
.review-done-btn {
    position: absolute; top: 25px; right: 25px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff;
    padding: 8px 16px; font-size: 12px; border-radius: 8px; width: auto; font-weight: 600;
}
.review-done-btn:hover { background: #4ade80; color: #000; border-color: #4ade80; box-shadow: 0 0 15px rgba(74, 222, 128, 0.3); }

/* Dashboard Audio Player */
.ultra-player { display: flex; align-items: center; gap: 15px; background: rgba(0,0,0,0.6); padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); margin-top: 15px; box-sizing: border-box; }
.ultra-play-btn { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #000; display: flex; justify-content: center; align-items: center; flex-shrink: 0; padding: 0; font-size: 14px; transition: 0.2s; }
.ultra-play-btn:hover { transform: scale(1.1); box-shadow: 0 0 15px rgba(255,255,255,0.4); }
.ultra-timeline { flex: 1; height: 6px; -webkit-appearance: none; background: rgba(255,255,255,0.1); border-radius: 3px; outline: none; cursor: pointer; }
.ultra-timeline::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: #06b6d4; border-radius: 50%; box-shadow: 0 0 10px #06b6d4; }
.ultra-time { font-size: 12px; color: #a1a1aa; font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 75px; text-align: right; font-weight: 600; }

/* ADMIN MENU CARDS */
.stats-row { display: flex; gap: 20px; margin-bottom: 30px; width: 100%; box-sizing: border-box; }
.stat-card { flex: 1; background: rgba(0,0,0,0.4); padding: 30px; border-radius: 16px; text-align: center; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; box-sizing: border-box; }
.stat-card:hover { transform: translateY(-5px); border-color: rgba(6, 182, 212, 0.4); box-shadow: 0 10px 30px rgba(6,182,212,0.1); }
.stat-card h2 { margin: 0; font-size: 48px; color: #06b6d4; text-shadow: 0 0 20px rgba(6, 182, 212, 0.4); }
.admin-menu-btn { 
    width: 100%; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); 
    color: #fff; padding: 25px; border-radius: 16px; font-size: 18px; font-weight: 700; 
    text-align: left; display: flex; justify-content: space-between; margin-bottom: 15px; 
    transition: 0.3s; box-sizing: border-box; align-items: center; cursor: pointer;
}
.admin-menu-btn:hover { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.4); transform: translateX(5px); }

/* --- RAINBOW & ROLE ANIMATIONS --- */
@keyframes roleShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.role-text {
    background-size: 200% auto;
    color: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: roleShine 3s linear infinite;
    font-weight: 800;
}
/* Mod (Level 1) - Emerald Glow */
.role-1 { background-image: linear-gradient(to right, #4ade80, #10b981, #059669, #4ade80); }
/* Admin (Level 2) - Ocean Blue */
.role-2 { background-image: linear-gradient(to right, #60a5fa, #3b82f6, #2563eb, #60a5fa); }
/* Manager (Level 3) - Neon Purple */
.role-3 { background-image: linear-gradient(to right, #c084fc, #a855f7, #9333ea, #c084fc); }
/* Developer (Level 4) - Synthwave */
.role-4 { background-image: linear-gradient(to right, #06b6d4, #8b5cf6, #d946ef, #06b6d4); }
/* Streamer (Level 5) - Legendary Fire */
.role-5 { background-image: linear-gradient(to right, #facc15, #f59e0b, #ef4444, #facc15); }

/* --- STAFF DIRECTORY & LOGS UI --- */
.staff-card {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(0,0,0,0.4); padding: 15px 20px; border-radius: 12px;
    margin-bottom: 10px; border: 1px solid rgba(255,255,255,0.05); gap: 15px;
}
.staff-card select { width: auto; margin: 0; padding: 8px 12px; font-size: 12px; }
.staff-card button { margin: 0; padding: 8px 14px; font-size: 12px; }

/* The new Layout for Log Items with Avatars */
.log-item {
    background: rgba(255,255,255,0.02); padding: 15px; border-radius: 12px;
    margin-bottom: 10px; 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; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;}
.log-action { font-size: 14px; font-weight: bold; color: #fff; }
.log-details { font-size: 13px; color: #a1a1aa; }

/* --- ONLINE/OFFLINE INDICATORS --- */
.status-dot { 
    width: 10px; height: 10px; border-radius: 50%; 
    display: inline-block; flex-shrink: 0;
}
.dot-online { background-color: #4ade80; box-shadow: 0 0 10px #4ade80; }
.dot-offline { background-color: #ef4444; }