/* 
 * ARENA APP - SYSTEM THEMES (v2026)
 * Design Tokens for different sports
 */

:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 🟠 TEMA: ARENA PADRÃO (Laranja & Preto) */
body.theme-padrao {
    --primary-color: #FF6600;
    --primary-rgb: 255, 102, 0;
    --accent-color: #FF9933;
    --bg-dark: #000000;
    --gradient: linear-gradient(135deg, #FF6600 0%, #CC5200 100%);
}

/* 🏎️ TEMA: ARENA F1 */
body.theme-f1 {
    --primary-color: #e10600;
    --primary-rgb: 225, 6, 0;
    --accent-color: #ffffff;
    --bg-dark: #0b0b0b;
    --gradient: linear-gradient(135deg, #e10600 0%, #8b0000 100%);
}

/* ⚽ TEMA: ARENA FUTEBOL */
body.theme-futebol {
    --primary-color: #00ff88;
    --primary-rgb: 0, 255, 136;
    --accent-color: #ffffff;
    --bg-dark: #05160a;
    --gradient: linear-gradient(135deg, #00ff88 0%, #008f4c 100%);
}

/* 🏀 TEMA: ARENA BASQUETE */
body.theme-basquete {
    --primary-color: #ff8c00;
    --primary-rgb: 255, 140, 0;
    --accent-color: #222222;
    --bg-dark: #120a05;
    --gradient: linear-gradient(135deg, #ff8c00 0%, #cc4400 100%);
}

/* 🏐 TEMA: ARENA VOLEI */
body.theme-volei {
    --primary-color: #ffee00;
    --primary-rgb: 255, 238, 0;
    --accent-color: #005bb7;
    --bg-dark: #001a33;
    --gradient: linear-gradient(135deg, #ffee00 0%, #005bb7 100%);
}

/* 🏍️ TEMA: ARENA MOTOGP */
body.theme-motogp {
    --primary-color: #00d4ff;
    --primary-rgb: 0, 212, 255;
    --accent-color: #ff004c;
    --bg-dark: #0a0f14;
    --gradient: linear-gradient(135deg, #00d4ff 0%, #005a8b 100%);
}

/* BASE STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background Layer */
#dynamic-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) saturate(1.2);
    transition: background-image 1.5s ease-in-out;
}

#dynamic-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 25px;
}

.btn-theme {
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-theme:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}

.text-accent { color: var(--primary-color); }

/* Ring Progress (Staff Dashboard) */
.ring-container {
    position: relative;
    width: 120px; height: 120px;
}

svg.ring { transform: rotate(-90deg); }
circle.ring-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 8; }
circle.ring-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out;
}

/* Utilities */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.p-20 { padding: 20px; }
.m-t-20 { margin-top: 20px; }

/* Form Premium Elements */
.input-premium {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.input-premium:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1) !important;
}

select.input-premium option {
    background: #111 !important;
    color: #fff;
    padding: 10px;
}
