html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Estilos do shell principal (header/sidebar/rodapé/toast/validação/erro/scrollbar) vivem em
   app.css. Esse arquivo tinha uma cópia antiga e mais simples das mesmas classes, carregada
   DEPOIS de app.css em _Host.cshtml — como CSS resolve empates de especificidade pela ordem
   de carregamento, essa cópia vencia silenciosamente e desfazia ajustes feitos em app.css
   (inclusive a gaveta responsiva da sidebar). Mantido aqui só o que é exclusivo deste arquivo:
   o sistema de temas (.tela-inicial/.theme-*) e o que ele estiliza. */

/* ========== TEMAS DO EDITOR ========== */
.tela-inicial {
    --theme-page: #12121c;
    --theme-surface: #14141e;
    --theme-panel: #191923;
    --theme-card: #1e1e2e;
    --theme-border: #282837;
    --theme-text: #f4f4f5;
    --theme-muted: #a1a1aa;
    --theme-accent: #6366f1;
    --theme-accent-strong: #4f46e5;
    background: var(--theme-page);
    color: var(--theme-text);
}

.tela-inicial .app-container,
.tela-inicial .sidebar,
.tela-inicial .main-content,
.tela-inicial .acessorios-container {
    background: var(--theme-page);
    color: var(--theme-text);
}

.tela-inicial .app-header,
.tela-inicial .app-footer,
.tela-inicial .qr-code-section,
.tela-inicial .acessorios-header,
.tela-inicial .produto-card,
.tela-inicial .chuteira-card,
.tela-inicial .luva-card {
    background: var(--theme-surface);
    border-color: var(--theme-border);
}

.tela-inicial .acessorios-header h2,
.tela-inicial .produto-card h3,
.tela-inicial .chuteira-info h4,
.tela-inicial .luva-info h4 {
    color: var(--theme-text);
}

.tela-inicial .app-title,
.tela-inicial .qr-title {
    color: var(--theme-accent);
}

.tela-inicial .app-subtitle,
.tela-inicial .qr-label,
.tela-inicial .qr-beneficiary,
.tela-inicial .qr-instruction,
.tela-inicial .chuteira-marca,
.tela-inicial .luva-marca,
.tela-inicial .chuteira-temporada,
.tela-inicial .luva-cor,
.tela-inicial .produto-beneficios li {
    color: var(--theme-muted);
}

.tela-inicial .app-header {
    border-bottom-color: var(--theme-border);
}

.tela-inicial .main-content {
    overflow-y: scroll !important;
    scrollbar-width: auto;
    scrollbar-color: #3a3a4a #1a1a24;
}

.tela-inicial .sidebar {
    border-right-color: var(--theme-border);
}

.tela-inicial .menu-item {
    color: var(--theme-muted);
}

.tela-inicial .menu-item:hover,
.tela-inicial .lang-btn:hover {
    background: var(--theme-card);
    color: var(--theme-text);
}

.tela-inicial .menu-item.active,
.tela-inicial .lang-btn.active {
    background: var(--theme-accent-strong);
    color: #fff;
}

/* "Acessórios" no sidebar só abre/fecha o submenu (não é uma tela em si) — fica sem o preenchimento
   sólido que os itens de navegação direta recebem quando ativos, só destacando o texto/ícone. Precisa
   estar aqui (não em app.css) pra empatar em especificidade com a regra acima e vencer por ordem. */
.tela-inicial .menu-item-pai.active {
    background: transparent;
    color: var(--theme-accent-strong);
}

.button-icon {
    display: inline-block;
    width: 1.25rem;
    margin-right: 0.4rem;
    text-align: center;
}

/* Cadeado nos itens do submenu de Acessórios que exigem plano pago (Atributo Time, Acessórios,
   Tatuagens, Uniformes, Bola, Log) — Chuteiras/Luvas ficam sem esse ícone, são livres pra todos. */
.submenu-cadeado {
    margin-left: auto;
    opacity: 0.6;
    font-size: 0.75rem;
}

/* Ícone de "Futebol Ao Vivo" no sidebar: cinza parado, vermelho e piscando enquanto
   FutebolAoVivoService reporta uma partida rolando agora (Live/Paused). */
.camera-rec-icone.gravando {
    color: #ef4444 !important;
    animation: fav-icone-piscar 1.1s ease-in-out infinite;
}

@keyframes fav-icone-piscar {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Rótulo + mini placar ao vivo empilhados (ver TelaInicial.razor/_placarAoVivoTexto) — o item do menu
   "Futebol Ao Vivo" some de dot vermelho pra virar um mini placar ao vivo quando há partida rolando. */
.sidebar-label-col {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
}

.sidebar-live-badge {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ef4444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-switcher {
    display: flex;
    gap: 4px;
    margin-left: 14px;
    padding: 3px;
    background: var(--theme-card);
    border: 1px solid var(--theme-border);
    border-radius: 6px;
}

.bg-customizer {
    display: flex;
    gap: 4px;
    margin-left: 10px;
    padding: 3px;
    background: var(--theme-card);
    border: 1px solid var(--theme-border);
    border-radius: 6px;
}

.bg-upload-btn {
    margin: 0;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 29px;
    padding: 4px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--theme-muted);
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.theme-btn:hover,
.theme-btn.active {
    background: var(--theme-accent-strong);
    color: #fff;
}

.theme-btn i {
    font-size: 11px;
}

/* [EDF 07/10/2026] Botão "Buscar Atualização": verde = já na versão do documento de controle, vermelho =
   tem versão nova — ver VerificarAtualizacaoManual/TelaInicial.razor. */
.theme-btn.btn-versao-ok {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
}

.theme-btn.btn-versao-desatualizada {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
}

.theme-clean {
    --theme-page: #eef2f5;
    --theme-surface: #ffffff;
    --theme-panel: #f8fafc;
    --theme-card: #ffffff;
    --theme-border: #d7dee7;
    --theme-text: #000000;
    --theme-muted: #64748b;
    --theme-accent: #0f766e;
    --theme-accent-strong: #0d9488;
}

.theme-semi-dark {
    --theme-page: #eef2f5;
    --theme-surface: #ffffff;
    --theme-panel: #f8fafc;
    --theme-card: #ffffff;
    --theme-border: #d7dee7;
    --theme-text: #000000;
    --theme-muted: #64748b;
    --theme-accent: #0f766e;
    --theme-accent-strong: #0d9488;
}

.theme-clean .main-content,
.theme-clean .acessorios-container,
.theme-clean .acessorios-content {
    background: var(--theme-panel) !important;
}

.theme-semi-dark .main-content,
.theme-semi-dark .acessorios-container,
.theme-semi-dark .acessorios-content,
.theme-semi-dark .main-content .bg-dark {
    background: var(--theme-panel) !important;
    color: var(--theme-text) !important;
}

.theme-semi-dark .sidebar {
    --theme-page: #12121c;
    --theme-surface: #14141e;
    --theme-panel: #191923;
    --theme-card: #1e1e2e;
    --theme-border: #282837;
    --theme-text: #f4f4f5;
    --theme-muted: #a1a1aa;
    --theme-accent: #6366f1;
    --theme-accent-strong: #4f46e5;
}

.theme-semi-dark .sidebar .qr-code-section,
.theme-semi-dark .sidebar .support-section {
    background: var(--theme-surface);
}

.qr-collapsed-icon {
    display: none;
}

.theme-clean .validation-panel {
    background: #dce8ed;
}

.theme-clean .glass-panel {
    background: rgba(255, 255, 255, 0.68);
}

.theme-clean .center-container {
    background: rgba(255, 255, 255, 0.94);
    border-color: #99f6e4;
}

.theme-clean .validation-title,
.theme-clean .validation-details,
.theme-clean .loading-message {
    color: var(--theme-text);
}

.theme-clean .tab-header,
.theme-clean .jogadores-table th,
.theme-clean .jogadores-table td,
.theme-clean .produto-beneficios li {
    border-color: var(--theme-border);
}

.theme-clean .filter-select,
.theme-clean .search-input,
.theme-clean .chuteira-image,
.theme-clean .luva-image {
    background: #eef2f5;
    border-color: var(--theme-border);
    color: var(--theme-text);
}

@media (max-width: 900px) {
    .theme-switcher {
        margin-left: 8px;
    }

    .theme-btn span {
        display: none;
    }

    .theme-btn {
        width: 29px;
        justify-content: center;
        padding: 4px;
    }
}
