/* --- GHOST ELITE THEME --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Rajdhani:wght@500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --bg: #050505;
    --card: #0f0f0f;
    --border: #222;
    --accent: #7c4dff; /* Ghost Purple */
    --accent-glow: rgba(124, 77, 255, 0.3);
    --text: #e0e0e0;
    --success: #00ff88;
    --danger: #ff4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: var(--bg); color: var(--text); font-family: 'Outfit', sans-serif;
    background-image: radial-gradient(circle at 50% 0%, #1a0b2e 0%, #050505 60%);
    min-height: 100vh; overflow-x: hidden;
}

/* --- LOADING SCREEN --- */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 50px; height: 50px; border: 5px solid #222; border-top: 5px solid var(--accent);
    border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- NAV --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: rgba(10,10,10,0.9);
    border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000;
    backdrop-filter: blur(10px);
}
.brand { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 800; color: white; letter-spacing: 1px; }
.links a { color: #888; text-decoration: none; margin-left: 15px; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.links a:hover { color: white; }
.btn-nav { background: var(--accent); color: white !important; padding: 6px 15px; border-radius: 4px; }

/* --- HERO (CIRCULAR LOGO) --- */
header { text-align: center; padding: 60px 20px; }
.hero-logo {
    width: 120px; height: 120px; object-fit: cover; border-radius: 50%;
    border: 3px solid var(--accent); box-shadow: 0 0 30px var(--accent-glow);
    margin-bottom: 25px;
}
header h1 { 
    font-family: 'Rajdhani', sans-serif; font-size: 3.5rem; line-height: 1; 
    margin-bottom: 15px; text-transform: uppercase; color: white; 
    text-shadow: 0 0 40px var(--accent-glow);
}
header p { color: #888; max-width: 500px; margin: 0 auto 30px; }

/* --- BUTTONS --- */
.btn { 
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 25px; border-radius: 6px; font-weight: bold; 
    text-decoration: none; transition: 0.3s; border: none; cursor: pointer; font-size: 0.9rem; margin: 5px;
}
.btn-main { background: var(--accent); color: white; box-shadow: 0 0 15px var(--accent-glow); }
.btn-discord { background: #5865F2; color: white; }
.btn-youtube { background: #FF0000; color: white; }
.btn:hover { transform: translateY(-3px); opacity: 0.9; }

/* --- CARDS & GRID --- */
.container { padding: 50px 5%; max-width: 1200px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { 
    background: var(--card); border: 1px solid var(--border); padding: 25px; 
    border-radius: 12px; transition: 0.3s; 
}
.card:hover { border-color: var(--accent); transform: translateY(-5px); }
.card h3 { color: white; margin-bottom: 10px; }
.card p { color: #aaa; font-size: 0.9rem; line-height: 1.5; }

/* --- FORMS --- */
.form-box { max-width: 500px; margin: 0 auto; background: var(--card); padding: 30px; border-radius: 16px; border: 1px solid var(--border); }
input, select, textarea { 
    width: 100%; padding: 12px; background: #080808; border: 1px solid var(--border); 
    color: white; border-radius: 6px; outline: none; margin-bottom: 15px; font-family: 'Outfit', sans-serif;
}
input:focus { border-color: var(--accent); }
label { display: block; color: #888; margin-bottom: 5px; font-size: 0.85rem; }

/* --- ADMIN PANEL UPDATES --- */
.stats-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px; margin-bottom: 30px;
}
.stat-box { background: var(--card); padding: 20px; border-radius: 8px; border: 1px solid var(--border); text-align: center; }
.stat-num { font-size: 2rem; font-weight: bold; color: var(--accent); display: block; }
.stat-label { font-size: 0.8rem; color: #888; text-transform: uppercase; }

.table-wrapper { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: rgba(124, 77, 255, 0.1); color: var(--accent); }
td { color: #ccc; font-size: 0.9rem; }

/* Improved Admin Controls */
.status-select { 
    background: #111; border: 1px solid #333; padding: 5px; 
    border-radius: 4px; color: white; font-size: 0.8rem; width: 100%;
}
.file-upload-wrapper { display: flex; gap: 5px; align-items: center; }
.btn-icon { 
    padding: 8px; border-radius: 4px; color: white; border: none; cursor: pointer; 
    display: inline-flex; justify-content: center; align-items: center;
}
.btn-delete { background: #330000; color: #ff4444; border: 1px solid #550000; } 
.btn-delete:hover { background: #550000; }
.custom-file-upload {
    border: 1px solid #333; display: inline-block; padding: 6px 12px;
    cursor: pointer; background: #111; border-radius: 4px; font-size: 0.8rem; color: #aaa; transition: 0.3s;
}
.custom-file-upload:hover { background: #222; color: white; }
input[type="file"] { display: none; } /* Hide ugly default input */

/* --- MOBILE --- */
@media (max-width: 768px) {
    header h1 { font-size: 2.5rem; }
    nav { flex-direction: column; gap: 15px; padding: 15px; }
    .links { flex-wrap: wrap; justify-content: center; gap: 15px; }
}
