/* ── Configurações Globais AvançaGP ── */
:root {
    --bg: #121212;
    --surface: #1E1E1E;
    --text: #F9FAFB;
    --text-dim: #9CA3AF;
    --border: #2A2A2A;
    --gold: #D4AF37;
}

body.light-theme {
    --bg: #F5F5F0;
    --surface: #FFFFFF;
    --text: #111111;
    --text-dim: #6B7280;
    --border: #E5E7EB;
    --gold: #B8942A;
}

body {
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.bg-midnight-surface {
    background-color: var(--surface) !important;
}

.border-gray-800 {
    border-color: var(--border) !important;
}

/* Modificadores de scroll e barra de rolagem nula */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Componente Theme Pill Genérico */
.theme-pill {
    width: 32px;
    height: 18px;
    border-radius: 999px;
    background: var(--border);
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.theme-pill::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

body.light-theme .theme-pill {
    background: var(--gold);
}

body.light-theme .theme-pill::after {
    transform: translateX(14px);
    background: white;
}

/* ── Bottom Navigation ── */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: #6B7280;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 0;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.nav-item span.material-icons-round {
    font-size: 22px;
    transition: color 0.2s, transform 0.2s;
}

.nav-item:hover {
    color: var(--gold);
}

.nav-item.active {
    color: var(--gold);
}

.nav-item.active span.material-icons-round {
    transform: scale(1.1);
}

/* ── Sticky Stats Header ── */
.sticky-stats {
    background: rgba(18, 18, 18, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 50;
}

body.light-theme .sticky-stats {
    background: rgba(245, 245, 240, 0.95);
}

/* ── Correções de Tema Claro (Light Mode) para Cards, Backlog e Modais ── */
body.light-theme .bg-gray-800\/50,
body.light-theme .bg-gray-800 {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: #D1D5DB !important;
}

body.light-theme #planning-backlog .bg-gray-800\/50 {
    background-color: #F3F4F6 !important;
}

body.light-theme .text-gray-200,
body.light-theme .text-white {
    color: #111827 !important;
}

body.light-theme .text-gray-400,
body.light-theme .text-gray-500 {
    color: #4B5563 !important;
}

/* Protegendo botões sólidos, botões coloridos de Dificuldade e Elementos de Destaque */
body.light-theme .text-primary,
body.light-theme button .text-white,
body.light-theme .diff-selector button {
    color: inherit !important;
}

body.light-theme .bg-amber-700 { background-color: #B45309 !important; color: #FFFFFF !important; }
body.light-theme .bg-secondary { color: #FFFFFF !important; }
body.light-theme .diff-selector button.bg-amber-700 .text-white { color: #FFFFFF !important; }

body.light-theme .bg-midnight-surface {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
    color: #111827 !important;
}
