/* assets/css/style.css */

/* 1. VARIABLES & RESET */
:root {
    --primary: #ffcc00; /* The Showtime Gold */
    --primary-hover: #e6b800;
    --dark-bg: #121212; /* Deepest Black */
    --card-bg: #1e1e1e; /* Slightly lighter for cards */
    --text-main: #f4f4f4;
    --text-muted: #aaaaaa;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 2. TYPOGRAPHY */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 3. NAVBAR */
.navbar {
    background-color: #000;
    border-bottom: 2px solid var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Desktop Menu */
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Buttons in Nav */
.btn-nav {
    padding: 8px 20px !important;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.85rem !important;
    border: 2px solid transparent;
}

.btn-nav.apply {
    background: var(--primary);
    color: #000 !important;
}
.btn-nav.apply:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}
.btn-nav.apply::after { display: none; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.8rem;
    cursor: pointer;
}

/* 4. HERO SECTION */
.hero-section {
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), var(--dark-bg)), url('../../assets/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.6);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 13px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--font-heading);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

/* 5. STAT BOXES */
.home-stats {
    margin-top: -50px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

.stat-box {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #333;
    transition: 0.3s;
}

.stat-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stat-box h2 { color: var(--primary); font-size: 2rem; }
.stat-box a { 
    color: #fff; 
    font-weight: bold; 
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-underline-offset: 5px;
}

/* 6. RESPONSIVE */
@media (max-width: 768px) {
    .nav-container { position: relative; }
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background-color: #000;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        border-bottom: 2px solid var(--primary);
    }
    .nav-links.active { display: flex; }
    .nav-links a { display: block; width: 100%; padding: 10px 0; font-size: 1.1rem; }
    .btn-secondary { margin-left: 0; margin-top: 15px; }
    .hero-content h1 { font-size: 2.5rem; }
    .home-stats { margin-top: 30px; }
}

.footer {
    margin-top: auto;
    background: #000;
    padding: 20px;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

/* --- UPDATED PLAYERS PAGE STYLES (Modern Pill Design) --- */

.page-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}
.page-header h1 { font-size: 3rem; color: var(--primary); margin-bottom: 5px; }

/* Modern Filter Bar */
.filters-container {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 50px; /* Pill shape container */
    border: 1px solid #333;
    margin: 0 auto 40px auto;
    max-width: 900px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.filter-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Input Group (Search Icon + Field) */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: #888;
    pointer-events: none;
}

.input-group input {
    padding: 12px 15px 12px 40px; /* Padding left for icon */
    background: #000;
    border: 1px solid #444;
    border-radius: 30px; /* Pill shape input */
    color: #fff;
    outline: none;
    font-family: var(--font-body);
    width: 200px;
}

/* Custom Select Dropdowns */
.filter-form select {
    padding: 12px 20px;
    background: #000;
    border: 1px solid #444;
    border-radius: 30px; /* Pill shape select */
    color: #fff;
    outline: none;
    font-family: var(--font-body);
    cursor: pointer;
    -webkit-appearance: none; /* Remove default arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
    padding-right: 35px;
}

.filter-form input:focus, .filter-form select:focus {
    border-color: var(--primary);
}

/* Buttons */
.button-group {
    display: flex;
    gap: 10px;
}

.btn-filter {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-filter:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-clear {
    background: transparent;
    color: #fff;
    border: 1px solid #555;
    padding: 11px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.btn-clear:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Player Grid & Card */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

.player-card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--primary);
}

.card-image-wrapper {
    height: 250px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.player-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.player-card:hover .player-photo { transform: scale(1.05); }

.card-body { padding: 20px; text-align: center; }
.player-name { font-size: 1.4rem; margin: 10px 0 5px; }
.player-name a:hover { color: var(--primary); }
.player-team { font-size: 0.9rem; font-weight: bold; margin-bottom: 15px; }

.player-stats {
    display: flex;
    justify-content: space-between;
    background: #111;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

.btn-profile {
    display: block;
    width: 100%;
    padding: 10px;
    background: #333;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
}
.btn-profile:hover { background: var(--primary); color: #000; }

/* Clean Empty State */
.no-results-box {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.5;
}
.no-results-box i { font-size: 3rem; color: #444; margin-bottom: 15px; display: block; }
.no-results-box h3 { font-size: 1.2rem; color: #fff; margin: 0; letter-spacing: 1px; }

/* Badges */
.badge-container { height: 25px; margin-bottom: 5px; }
.player-badge { font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; display: inline-block; }
.badge-star { background: gold; color: black; box-shadow: 0 0 10px gold; }
.badge-mastermind { background: purple; color: white; }
.badge-noob { background: #444; color: #aaa; }

/* Mobile Filter Tweak */
@media (max-width: 768px) {
    .filters-container { border-radius: 20px; padding: 20px; }
    .filter-form input, .filter-form select { width: 100%; }
    .button-group { width: 100%; justify-content: center; }
    .btn-filter, .btn-clear { flex: 1; text-align: center; justify-content: center; }
}

/* --- LEADERBOARD PAGE --- */

.leaderboard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.section-title {
    font-size: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Team Grid (Podium Style) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.team-card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    border: 1px solid #333;
    overflow: hidden;
    transition: transform 0.3s;
}

.team-card:hover { transform: translateY(-5px); }

.rank-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #333;
    padding: 5px 15px;
    border-bottom-left-radius: 12px;
    font-weight: bold;
    font-family: var(--font-heading);
}

.team-content h3 { margin-top: 10px; font-size: 1.4rem; }

.team-score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    margin: 10px 0;
}
.team-score span { font-size: 0.9rem; color: #777; font-weight: normal; }

.member-count { color: #888; font-size: 0.9rem; }

/* Rank Colors */
.rank-gold { border: 2px solid #FFD700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); }
.rank-gold .rank-badge { background: #FFD700; color: #000; }

.rank-silver { border: 2px solid #C0C0C0; }
.rank-silver .rank-badge { background: #C0C0C0; color: #000; }

.rank-bronze { border: 2px solid #CD7F32; }
.rank-bronze .rank-badge { background: #CD7F32; color: #000; }

/* Modern Table */
.table-wrapper {
    overflow-x: auto;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Forces scroll on mobile */
}

.modern-table th {
    background: #000;
    padding: 15px;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #888;
    border-bottom: 2px solid #333;
}

.modern-table td {
    padding: 15px;
    border-bottom: 1px solid #2a2a2a;
    vertical-align: middle;
}

.modern-table tr:last-child td { border-bottom: none; }
.modern-table tr:hover { background: #222; }

/* Table Elements */
.rank-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}
.rank-1 { background: #FFD700; color: #000; }
.rank-2 { background: #C0C0C0; color: #000; }
.rank-3 { background: #CD7F32; color: #000; }

.player-cell { display: flex; align-items: center; gap: 15px; }
.avatar-small { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #444; }
.name-link { font-weight: bold; color: #fff; }
.name-link:hover { color: var(--primary); }

.team-tag {
    border: 1px solid #555;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    background: rgba(0,0,0,0.3);
}

.status-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; }
.status-active { background: rgba(0, 255, 0, 0.1); color: #0f0; }
.status-eliminated { background: rgba(255, 0, 0, 0.1); color: #f00; }
.status-wildcard { background: rgba(128, 0, 128, 0.1); color: violet; }

.row-eliminated { opacity: 0.5; background: rgba(255,0,0,0.05); }
.points-highlight { color: var(--primary); font-size: 1.1rem; }
.text-right { text-align: right; }
.text-gold { color: gold; margin-left: 5px; }
.text-purple { color: violet; margin-left: 5px; }
.text-gray { color: #888; margin-left: 5px; }
.small-box { padding: 30px; opacity: 0.6; }

/* --- VOTING / POLLS PAGE --- */

.poll-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* Alerts */
.poll-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}
.alert-success { background: rgba(0, 255, 0, 0.1); color: #0f0; border: 1px solid #0f0; }
.alert-error { background: rgba(255, 0, 0, 0.1); color: #f00; border: 1px solid #f00; }

/* Poll Card */
.poll-card {
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.poll-header {
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
    background: linear-gradient(to bottom, #252525, #1e1e1e);
}

.poll-meta { margin-bottom: 10px; }

.poll-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}
.badge-public { background: #007bff; color: #fff; }
.badge-private { background: #6f42c1; color: #fff; }

.poll-header h2 { margin: 0; font-size: 1.5rem; color: #fff; }
.poll-desc { color: #aaa; margin-top: 5px; font-size: 0.9rem; }

/* Grid for Options */
.poll-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.poll-option-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Vote Button / Card */
.vote-card-btn {
    background: #111;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    padding: 0;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.vote-card-btn:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.option-img {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #333;
}

.option-content {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.option-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
}

.btn-label {
    background: #333;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.vote-card-btn:hover .btn-label {
    background: var(--primary);
    color: #000;
}

/* Results Bars */
.result-bar-container {
    padding: 0 5px;
}

.result-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.progress-track {
    background: #333;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background: var(--primary);
    height: 100%;
    transition: width 1s ease-in-out;
}

.poll-footer {
    background: #111;
    padding: 10px 20px;
    text-align: right;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #2a2a2a;
}

/* --- AUTHENTICATION PAGES (Login/Register) --- */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh; /* Centers vertically on desktop */
    padding: 20px;
}

.auth-card {
    background: #1e1e1e;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.auth-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
}

.auth-header p {
    color: #888;
    margin-top: 5px;
}

/* Auth Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: bold;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #666;
    transition: color 0.3s;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Space for icon */
    background: #000;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
}

.input-wrapper input:focus + i {
    color: var(--primary); /* Highlight icon on focus */
}

/* Button Block */
.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 10px;
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #888;
}

.auth-footer a {
    color: var(--primary);
    font-weight: bold;
}

/* Error Alert in Auth */
.auth-alert {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #f00;
    color: #ff4d4d;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Registration Specific Styles */

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.dark-textarea {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Space for icon */
    background: #000;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    resize: none;
    transition: border 0.3s;
}

.dark-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.file-input-wrapper input {
    padding-top: 10px; /* Align file text better */
    cursor: pointer;
}

/* Mobile adjustment for form row */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* --- ADMIN DASHBOARD LAYOUT --- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #000;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-shrink: 0;
}

.admin-sidebar .logo { margin-bottom: 40px; justify-content: center; }

.admin-menu { list-style: none; width: 100%; }
.admin-menu li { margin-bottom: 10px; }
.admin-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: #aaa;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: 0.3s;
}
.admin-menu a:hover, .admin-menu a.active {
    background: var(--primary);
    color: #000;
}

.admin-content {
    flex-grow: 1;
    padding: 30px;
    background: #121212;
    overflow-y: auto;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255, 204, 0, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 { font-size: 2rem; margin: 0; color: #fff; }
.stat-info p { margin: 0; color: #888; font-size: 0.9rem; }

/* Settings Form */
.settings-card {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    max-width: 600px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #333;
}

/* Mobile Admin */
@media (max-width: 768px) {
    .admin-wrapper { flex-direction: column; }
    .admin-sidebar { width: 100%; padding: 10px; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid #333; }
    .admin-sidebar .logo { display: none; }
    .admin-menu { display: flex; gap: 10px; }
    .admin-menu a span { display: none; } /* Hide text on mobile, show icons */
}


/* MOBILE NAVIGATION  */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        color: #fff;
        cursor: pointer;
        z-index: 99999;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000;
        flex-direction: column;
        padding: 20px;
        border-bottom: 2px solid var(--primary);
        box-shadow: 0 10px 20px rgba(0,0,0,0.8);
        z-index: 9999;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        margin: 12px 0;
    }

    .nav-links a {
        font-size: 18px;
        padding: 10px 0;
        display: block;
    }
}
