:root {
    /* Colors - High Energy Sports Palette */
    --accent-yellow: #f2df0d;
    --accent-orange: #ff7e33;
    --accent-blue: #00f2ff;
    --bg-dark: #050608;
    --bg-card: rgba(20, 22, 28, 0.7);
    --bg-sidebar: #0e1014;
    --text-main: #ffffff;
    --text-muted: #8a8f98;
    --border-glass: rgba(255, 255, 255, 0.1);
    --success: #00ff88;

    --font-primary: 'Lexend', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --shadow-neon: 0 0 20px rgba(242, 223, 13, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    overflow-x: hidden;
    height: 100vh;
}

.app-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Navigation */
.main-nav {
    height: 70px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-links li:hover,
.nav-links li.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links li.active {
    color: var(--accent-yellow);
    background: rgba(242, 223, 13, 0.1);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sync-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Viewport */
.view-viewport {
    flex: 1;
    overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(242, 223, 13, 0.05), transparent 600px),
        radial-gradient(circle at bottom left, rgba(0, 242, 255, 0.05), transparent 600px);
}

/* Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(242, 223, 13, 0.1);
    border-bottom: 1px solid rgba(242, 223, 13, 0.3);
    height: 35px;
    display: flex;
    align-items: center;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker__item {
    display: inline-block;
    padding: 0 4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-yellow);
    text-transform: uppercase;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Dashboard Styles (Public Projection) */
.dashboard-public {
    padding: 20px 40px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.bracket-container {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
}

.bracket-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.bracket-header h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 900;
}

.bracket-visual {
    display: flex;
    justify-content: flex-start;
    flex: 1;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.bracket-column {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
    gap: 40px;
}

.bracket-match {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 15px;
    width: 200px;
    position: relative;
}

.bracket-match::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--border-glass);
}

.team-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.team-row.winner {
    color: var(--accent-yellow);
}

.score {
    font-weight: 700;
}

/* Admin Styles (Registration) */
.admin-container {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    padding: 30px;
}

.card-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input,
select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    font-family: var(--font-primary);
    transition: 0.3s;
}

/* Fix for background in dropdown options */
select option {
    background-color: #1a1c23 !important;
    color: white !important;
}

input:focus,
select:focus {
    border-color: var(--accent-yellow);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

.btn {
    background: var(--accent-yellow);
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 223, 13, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: white;
}

.item-list {
    margin-top: 20px;
}

.item-row {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Utilities */
.hidden {
    display: none !important;
}

.athletic-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-glass);
    border-top-color: var(--accent-yellow);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}