@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0a0e17;
    --bg-secondary: #121927;
    --accent: #00d2ff;
    --accent-dark: #3a7bd5;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(18, 25, 39, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: radial-gradient(circle at top left, var(--bg-secondary) 0%, var(--bg-main) 100%);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glassmorphism Card for Auth Pages */
.auth-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-title {
    font-size: 28px;
    text-align: center;
    color: #fff;
    margin-top: 0;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
    background: -webkit-linear-gradient(45deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

button {
    width: 100%;
    background: linear-gradient(45deg, var(--accent-dark), var(--accent));
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

button.btn-danger {
    background: linear-gradient(45deg, #d32f2f, #f44336);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

button.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

button.btn-success {
    background: linear-gradient(45deg, #2e7d32, #4caf50);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.error-msg {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    color: #ff8a80;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
}

.success-msg {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4caf50;
    color: #b9f6ca;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.auth-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
    background: var(--glass-bg);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    margin-top: 40px;
    flex-grow: 1;
}

.nav-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent);
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
}

.glass-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.status-indicator {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.3);
}

.games-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 800px;
    overflow-y: auto;
    flex-grow: 1;
}

.games-list li {
    padding: 10px;
    font-size: 13px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.games-list li:last-child {
    border-bottom: none;
}

.game-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 8px var(--accent);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}