:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --accent-color: #00f3ff; /* Neon cyan */
    --accent-secondary: #bc13fe; /* Neon purple */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-radius: 12px;
    --glow-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(188, 19, 254, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 243, 255, 0.05), transparent 25%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    margin-bottom: 40px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.logo::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('logo.jpg');
    background-size: cover;
    background-position: center;
    margin-right: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.logo:hover {
    color: var(--accent-color);
    text-shadow: var(--glow-shadow);
}

.status-indicator {
    display: flex;
    align-items: center;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff66;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 8px #00ff66;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 100;
}

.nav-links {
    display: contents; /* Allows children to participate in flex container */
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(20, 20, 20, 0.8) 100%);
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-shadow);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 35px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.stat-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.section-title {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.game-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 243, 255, 0.3);
}

.game-rank {
    font-size: 24px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    right: 10px;
    top: 0px;
    z-index: 0;
}

.game-info {
    flex: 1;
    z-index: 1;
}

.game-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
    color: #fff;
}

.game-downloads {
    font-size: 13px;
    color: var(--accent-color);
}

/* Server List Styling */
.server-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.server-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.server-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.server-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.server-status {
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-online {
    color: #00ff66;
    background: rgba(0, 255, 102, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
    border: 1px solid rgba(0, 255, 102, 0.2);
}

.status-offline {
    color: #ff3333;
    background: rgba(255, 51, 51, 0.1);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
    border: 1px solid rgba(255, 51, 51, 0.2);
}

footer {
    margin-top: auto;
    padding-top: 50px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header Actions (Error Logs, etc) */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* --- Responsive Media Queries --- */

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    /* Header adjustments */
    header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    .logo {
        font-size: 22px;
    }

    .logo::before {
        width: 30px;
        height: 30px;
    }

    /* Navigation adjustments */
    nav {
        justify-content: flex-end; /* Align hamburger to right */
        margin-bottom: 30px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none; /* Hidden by default */
        position: absolute;
        top: 40px; /* Below the hamburger */
        right: 0;
        background: var(--bg-card);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 20px;
        flex-direction: column;
        width: 200px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        z-index: 200;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link.active::after {
        display: none; /* Remove underline on mobile */
    }
    
    .nav-link.active {
        color: var(--accent-color);
        padding-left: 10px;
        border-left: 2px solid var(--accent-color);
    }

    /* Hero Section */
    .hero {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn {
        width: 100%; /* Full width button on mobile */
        text-align: center;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Server List */
    .server-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    /* Tables (if any) */
    .table-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px; /* Ensure table scrolls */
    }

    /* Tickets specific */
    .ticket-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ticket-item .status-badge {
        align-self: flex-start;
    }

    /* General padding adjustments for specific containers */
    .tickets-container {
        padding: 20px !important;
    }

    /* Header Actions Responsive */
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .header-actions form, .header-actions button {
        width: 100%;
    }
}
