/* ================================================================== */
/* 🔴 TEMA GLOBAL (PORTAL DOMINARIA) - V1.6 */
/* ================================================================== */
body { 
    background: #000000; /* Fundo da página Preto */
    color: #000000; /* Texto Padrão Preto dentro dos cards */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    margin: 0; 
    padding-top: 90px; /* Espaço para Navbar Fixa */
    padding-bottom: 40px; 
}

/* FORÇA BRUTA: Garante fundo branco nos containers de conteúdo */
.box, 
#tab-content, 
#view-app > div,
div[style*="background:#1a1a1a"], 
div[style*="background: #1a0505"],
.nav-item.active { 
    background: #ffffff !important; 
    color: #000000 !important; 
    border-color: #ddd !important;
}

/* Garante legibilidade em elementos que eram escuros no tema antigo */
div[style*="background:#1a1a1a"] label,
div[style*="background: #1a0505"] label,
div[style*="background:#1a1a1a"] h3,
div[style*="background: #1a0505"] h3 {
    color: #333 !important;
}

div[style*="background:#1a1a1a"], 
div[style*="background: #1a0505"] {
    border: 1px solid #ccc !important;
    background-color: #f9f9f9 !important; 
}

/* ================================================================== */
/* 🟢 CONTAINER PRINCIPAL (.box) */
/* ================================================================== */
.box { 
    padding: 20px; 
    max-width: 1000px; 
    width: 95%; 
    margin: auto; 
    box-sizing: border-box;
    border: 1px solid #333; 
    border-radius: 4px; 
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1); 
    background: #ffffff;
}

/* LOGOS */
.login-logo-container { 
    text-align: center; 
    margin-bottom: 10px; 
}

.icon-logo-login { 
    width: 120px; 
    height: auto; 
    filter: none; 
    object-fit: contain; 
}

.icon-logo-nav { 
    width: 24px; 
    height: 24px; 
    object-fit: contain; 
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3)); 
}

/* ================================================================== */
/* 🟢 TIPOGRAFIA E ELEMENTOS BÁSICOS */
/* ================================================================== */
h2 { 
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px; 
    color: #b71c1c; 
    font-size: 1.4rem; 
    margin-top: 0; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 700;
}

h3 {
    color: #b71c1c !important; 
    margin-top: 0;
}

label { 
    font-size: 0.85em; 
    color: #333 !important; 
    margin-top: 15px; 
    display: block; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

/* Tooltips / Info Boxes */
.page-info { 
    background: #fff0f0 !important; 
    color: #b71c1c !important; 
    padding: 12px; 
    border-radius: 4px; 
    border-left: 4px solid #b71c1c; 
    margin-bottom: 20px; 
    font-size: 0.9em; 
    line-height: 1.5; 
    border: 1px solid #ffcdd2;
}

.info-policy {
    background: #fff3e0;
    color: #e65100;
    padding: 10px;
    font-size: 0.8em;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #ffe0b2;
    font-weight: bold;
}

/* ================================================================== */
/* 🟢 FORMULÁRIOS E INPUTS */
/* ================================================================== */
input, select, textarea { 
    padding: 12px; 
    width: 100%; 
    border-radius: 2px; 
    border: 1px solid #ccc !important; 
    background: #f9f9f9 !important; 
    color: #000 !important; 
    margin-bottom: 5px; 
    box-sizing: border-box; 
    font-size: 1rem; 
    transition: border 0.2s, box-shadow 0.2s; 
}

input:focus, select:focus, textarea:focus { 
    border-color: #b71c1c !important; 
    outline: none; 
    background: #fff !important; 
    box-shadow: 0 0 5px rgba(183, 28, 28, 0.2);
}

input[readonly] { 
    background: #eee !important; 
    color: #555 !important; 
    border: 1px dashed #ccc !important; 
    cursor: default; 
}

.editing-mode {
    border: 2px solid #ff9800 !important;
    background-color: #fff3e0 !important;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.3);
    position: relative;
    padding-top: 35px !important;
}
.editing-mode::before {
    content: "✏️ MODO DE EDIÇÃO";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #ff9800;
    color: white;
    padding: 4px 10px;
    font-size: 0.8em;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}

.password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px; 
    margin-bottom: 5px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 42%; 
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    padding: 0;
    margin: 0;
    width: auto;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666 !important;
    z-index: 10;
}

.toggle-password:hover { color: #b71c1c !important; }

input.chk-envelope {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #b71c1c; 
}

input.chk-role {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1976d2;
    vertical-align: middle;
    margin-right: 5px;
}

/* ================================================================== */
/* 🟢 BOTÕES */
/* ================================================================== */
button { 
    background: #b71c1c; 
    color: #ffffff !important; 
    padding: 14px; 
    width: 100%; 
    border: none; 
    border-radius: 2px; 
    font-weight: bold; 
    cursor: pointer; 
    margin-top: 20px; 
    font-size: 1rem; 
    text-transform: uppercase; 
    transition: transform 0.1s, background 0.2s; 
}

button:active { transform: scale(0.98); }
button:hover { background: #d32f2f; }
button:disabled { background: #ccc; color: #666 !important; cursor: not-allowed; }

.btn-outline { 
    background: transparent !important; 
    border: 1px solid #b71c1c !important; 
    color: #b71c1c !important; 
    margin-top: 10px; 
}
.btn-outline:hover { background: #b71c1c !important; color: #fff !important; }

.link-recover {
    display: block;
    text-align: center;
    color: #666;
    font-size: 0.85em;
    margin-top: 15px;
    text-decoration: underline;
    cursor: pointer;
}
.link-recover:hover { color: #b71c1c; }

.btn-install { background: transparent !important; border: 2px solid #b71c1c !important; color: #b71c1c !important; margin-top: 10px; }
.btn-install:hover { background: #b71c1c !important; color: #fff !important; }
.ios-guide { background: #f0f0f0; padding: 15px; border-radius: 4px; margin-top: 15px; font-size: 0.9em; color: #333; border: 1px solid #ccc; text-align: left; line-height: 1.6; }

.btn-mini { padding: 4px 8px; font-size: 0.75em; border-radius: 2px; cursor: pointer; margin-right: 5px; text-transform: uppercase; font-weight: bold; border: 1px solid; background: transparent !important; transition: 0.2s; }
.btn-atendente { color: #b71c1c !important; border-color: #b71c1c !important; }
.btn-atendente:hover { background: rgba(183, 28, 28, 0.1) !important; }
.btn-admin { color: #333 !important; border-color: #333 !important; }
.btn-admin:hover { background: rgba(0,0,0,0.1) !important; }
.btn-rebaixar { color: #d32f2f !important; border-color: #d32f2f !important; } 
.btn-rebaixar:hover { background: rgba(211, 47, 47, 0.1) !important; }
.btn-success { color: #2e7d32 !important; border-color: #2e7d32 !important; } 
.btn-success:hover { background: rgba(46, 125, 50, 0.1) !important; }

.btn-participate { background-color: #2e7d32 !important; }
.btn-participating { background-color: #1976d2 !important; }

/* ================================================================== */
/* 🟢 NAVBAR (HEADER FIXO) */
/* ================================================================== */
.nav-bar { 
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%; 
    background: #000000 !important; 
    display: flex; 
    flex-direction: column; 
    align-items: stretch; 
    z-index: 1000; 
    box-sizing: border-box; 
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1); 
    padding: 0;
    height: auto; 
    border-bottom: 1px solid #333;
}

.nav-top-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 15px; 
    border-bottom: 1px solid #222;
    height: 45px; 
    background: #000;
}

.nav-logo { 
    font-weight: 700; 
    color: #fff; 
    font-size: 1rem; 
    white-space: nowrap; 
    margin-right: 10px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.nav-right-group { 
    display: flex; 
    align-items: center; 
    margin-left: auto; 
    padding-left: 10px; 
    gap: 8px; 
    height: 100%; 
}

.nav-btn-logout { 
    color: #fff; 
    background: #b71c1c; 
    border-radius: 2px; 
    height: 28px; 
    padding: 0 10px; 
    font-size: 0.75em; 
    margin-top: 0; 
    border: none; 
    cursor: pointer;
}
.nav-btn-logout:hover { background: #801313; }

.nav-scroll-container { 
    display: flex; 
    align-items: flex-start; 
    overflow-x: auto; 
    width: 100%; 
    height: 45px; 
    background: #000 !important; 
    border-bottom: 2px solid #b71c1c; 
    scrollbar-width: none; 
    cursor: grab; 
    user-select: none; 
    padding-top: 5px;
}
.nav-scroll-container:active { cursor: grabbing; }
.nav-scroll-container::-webkit-scrollbar { display: none; }

.nav-item { 
    padding: 0 15px; 
    margin-right: 2px;
    font-size: 0.85em; 
    color: #999; 
    background: #1a1a1a !important; 
    cursor: pointer; 
    white-space: nowrap; 
    transition: 0.2s; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    height: 40px; 
    box-sizing: border-box; 
    font-family: inherit; 
    text-transform: uppercase; 
    font-weight: 700;
    border-radius: 4px 4px 0 0;
    border: 1px solid #333;
    border-bottom: none;
}

.nav-icon { font-size: 1.1em; }

.nav-item-plus {
    font-size: 1.4em; 
    font-weight: 900;
    color: #b71c1c !important;
    padding: 0 20px;
}

.nav-item:hover { 
    background: #333 !important; 
    color: #fff; 
}

.nav-item.active { 
    background: #ffffff !important; 
    color: #b71c1c !important; 
    height: 43px;
    margin-top: -3px;
    border-color: #fff;
    border-top: 2px solid #b71c1c !important;
    box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.1);
}

.nav-badge-inline {
    background-color: #b71c1c;
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 0.7em;
    font-weight: bold;
    margin-left: 0;
    margin-right: 2px;
    vertical-align: middle;
    display: inline-block;
    min-width: 14px;
    text-align: center;
    line-height: 1;
}

/* ================================================================== */
/* 🟢 AUTOCOMPLETE E LISTAS */
/* ================================================================== */
.autocomplete-wrapper { position: relative; width: 100%; }

.suggestions-list { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background: #fff !important; 
    border: 1px solid #ccc; 
    border-top: none; 
    max-height: 220px; 
    overflow-y: auto; 
    z-index: 999; 
    border-radius: 0 0 4px 4px; 
    display: none; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

.suggestion-item { 
    padding: 12px; 
    cursor: pointer; 
    border-bottom: 1px solid #eee; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: #000 !important; 
}

.suggestion-item:hover { background: #f5f5f5 !important; }
.suggestion-item small { color: #666 !important; }

/* ================================================================== */
/* 🟢 TABELAS */
/* ================================================================== */
.data-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 0.85em; 
    margin-top: 0; 
    table-layout: auto; 
} 

.data-table th { 
    text-align: left; 
    background: #eee !important; 
    padding: 10px; 
    color: #333 !important; 
    white-space: nowrap; 
    border-bottom: 2px solid #b71c1c; 
    font-weight: bold; 
}

.data-table td { 
    border-bottom: 1px solid #eee; 
    padding: 10px; 
    vertical-align: middle; 
    color: #333 !important; 
    white-space: normal; 
    word-wrap: break-word; 
    max-width: 200px; 
}

.data-table tr:hover { background: #fafafa !important; }

.table-responsive { 
    width: 100%; 
    overflow-x: hidden; 
    margin-bottom: 20px; 
    border: 1px solid #eee; 
    border-radius: 4px; 
}

/* ================================================================== */
/* 🟢 CARDS E NOVIDADES */
/* ================================================================== */
.card-news-standard {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.card-presale {
    position: relative;
    width: 100%;
    padding-top: 30.77%; 
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.presale-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.card-presale:hover .presale-img { transform: scale(1.02); }

.presale-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 10%, rgba(0, 0, 0, 0.6) 50%, transparent);
    padding: 15px;
    box-sizing: border-box;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.presale-title {
    color: #fff;
    margin: 0;
    font-size: 1.2em;
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 65%;
    line-height: 1.1;
    text-align: left;
}

.presale-date {
    background-color: #b71c1c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.badge-disponivel {
    background-color: #00e676 !important; /* Verde Neon */
    color: #000 !important;
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.presale-cta {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #2e7d32;
    color: white;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 20; 
    pointer-events: none; 
    border: 2px solid #fff;
}

.presale-cta::after {
    content: "ADQUIRA JÁ!";
    animation: textCycle 6s infinite;
}

@keyframes textCycle {
    0%, 30% { content: "ADQUIRA JÁ!"; }
    33%, 63% { content: "GARANTA O SEU!"; }
    66%, 96% { content: "CLIQUE AQUI!"; }
}

/* --- BARRA DE CONTROLES ADMIN (NOVIDADES) --- */
.admin-controls-row {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    padding: 8px 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 10px;
    z-index: 25;
    pointer-events: auto;
}

.admin-badge-clicks {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-admin-icon {
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    color: #333 !important;
    font-weight: bold;
    cursor: pointer;
    width: 32px !important;
    height: 32px !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 1.2em !important;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.btn-admin-icon:hover { transform: scale(1.1); background: #fff !important; }

.btn-edit { color: #1976d2 !important; } /* Azul */
.btn-delete { color: #d32f2f !important; } /* Vermelho */
.btn-release { background-color: #ffd600 !important; color: #000 !important; } /* Amarelo */

.news-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.news-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
    color: #666;
}
.news-tab.active {
    background: #b71c1c;
    color: white;
    border-color: #b71c1c;
}

/* ================================================================== */
/* 📊 ENQUETES (POLLS) */
/* ================================================================== */
.poll-card {
    background: #ffffff;
    border: 1px solid #1976d2; 
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 6px rgba(25, 118, 210, 0.1);
}

.poll-question {
    color: #1976d2 !important;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.btn-poll-option {
    background: transparent !important;
    color: #1976d2 !important;
    border: 1px solid #1976d2 !important;
    margin-top: 8px;
    padding: 12px;
    text-align: left;
    transition: 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-poll-option:hover {
    background: #e3f2fd !important;
}

.poll-option-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.poll-result-row {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.poll-content-wrapper {
    flex: 1;
}

.poll-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.poll-bar-bg {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.poll-bar-fill {
    height: 100%;
    background: #1976d2;
    border-radius: 5px;
    transition: width 0.5s ease-out;
}

/* ================================================================== */
/* 🟢 NOTIFICAÇÕES */
/* ================================================================== */
.notif-card {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.1s;
}

.notif-card:active { transform: scale(0.98); }

.notif-unread {
    background: #fff0f0;
    border: 1px solid #ffcdd2;
    border-left: 5px solid #b71c1c;
    font-weight: 500;
}

.notif-read {
    background: #fff;
    border: 1px solid #eee;
    opacity: 0.8;
}

.badge { 
    background: #eee; 
    color: #333; 
    padding: 2px 6px; 
    border-radius: 2px; 
    font-size: 0.8em; 
    text-transform: uppercase; 
    border: 1px solid #ccc; 
}

/* ================================================================== */
/* 🟢 UTILITÁRIOS E FEEDBACK */
/* ================================================================== */
.hidden { display: none !important; }

.error { 
    color: #fff; 
    background: #c62828; 
    padding: 10px; 
    border-radius: 2px; 
    display: none; 
    margin-bottom: 10px; 
    text-align: center; 
    font-weight: bold; 
}

.success { 
    color: #fff; 
    background: #2e7d32; 
    padding: 10px; 
    border-radius: 2px; 
    display: none; 
    margin-bottom: 10px; 
    text-align: center; 
    font-weight: bold; 
}

.loading-text {
    text-align: center;
    color: #888;
    font-style: italic;
    margin-top: 20px;
}

.empty-msg {
    text-align: center;
    color: #aaa;
    margin-top: 30px;
}

details { margin-bottom: 20px; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; background: #fff !important; }
details > summary { list-style: none; outline: none; background: #f9f9f9 !important; padding: 15px; cursor: pointer; font-weight: bold; color: #b71c1c !important; text-transform: uppercase; font-size: 0.9em; border-left: 4px solid #b71c1c; color: #000; }
details[open] > summary { border-bottom: 1px solid #ddd; }
details > summary::-webkit-details-marker { display: none; }

/* 🟢 CONFIGURATIONS & TOGGLES */
.config-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #b71c1c;
}

input:focus + .slider {
  box-shadow: 0 0 1px #b71c1c;
}

input:checked + .slider:before {
  -webkit-transform: translateX(22px);
  -ms-transform: translateX(22px);
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ================================================================== */
/* 🟢 PWA UPDATE TOAST */
/* ================================================================== */
.update-toast {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #b71c1c;
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 1px solid #ff5252;
}

.update-toast p { margin: 0; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }

.update-toast button {
    width: auto;
    margin: 0;
    padding: 8px 15px;
    background: white;
    color: #b71c1c !important;
    border: none;
    font-size: 0.9em;
}
.update-toast button:hover { background: #eee; }

/* ================================================================== */
/* 🟢 HISTÓRICO UNIFICADO (SUB-TABS) */
/* ================================================================== */
.history-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #f0f0f0;
    padding: 5px;
    border-radius: 6px;
}
.sub-tab {
    flex: 1;
    background: transparent !important;
    color: #555 !important;
    border: none;
    margin: 0;
    padding: 10px;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 4px;
}
.sub-tab.active {
    background: #fff !important;
    color: #b71c1c !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ================================================================== */
/* 🟢 PASTA DIGITAL (BINDER) */
/* ================================================================== */
.binder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.binder-card-item {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* 🟢 EFEITO GLOW (SELEÇÃO) */
.selected-card-glow {
    box-shadow: 0 0 15px #00e676 !important; /* Verde Neon */
    border-color: #00e676 !important;
    transform: scale(1.03);
    z-index: 10;
}

.binder-card-item img {
    width: 100%;
    height: auto;
    display: block;
}
.binder-card-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.binder-card-info strong {
    font-size: 0.85em;
    margin-bottom: 5px;
    line-height: 1.2;
    display: block;
    color: #333;
}
.binder-card-info button {
    margin-top: auto;
    font-size: 0.75em;
    padding: 6px;
    margin-bottom: 0;
}

/* ================================================================== */
/* 🟢 LIFE COUNTER */
/* ================================================================== */
.lc-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #222;
    color: white;
}
.player-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.player-area.p2.rotated {
    transform: rotate(180deg);
    border-bottom: 2px solid #444;
}
.life-val {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
}
.life-btns {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}
.life-btns button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white !important;
    font-size: 2em;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mid-bar {
    height: 60px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 10;
}
.game-select {
    background: #333 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
    width: auto;
    padding: 8px;
    border-radius: 4px;
}
.btn-close-lc {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 50;
    width: auto;
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    margin: 0;
    font-size: 0.8em;
}
.btn-reset-small {
    width: 40px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Digimon Memory Gauge */
.digimon-bg {
    background: #101010;
    justify-content: center;
    align-items: center;
}
.memory-gauge-wrapper {
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0;
}
.memory-track {
    display: flex;
    gap: 2px;
}
.mem-step {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #333;
    font-weight: bold;
    font-size: 0.9em;
}
.mem-step.zero { background: #fff; color: #000; }
.mem-step.me { border: 2px solid #1976d2; }
.mem-step.opp { border: 2px solid #d32f2f; }
.mem-step.active {
    transform: scale(1.5);
    background: #ffd600;
    color: #000;
    border-color: #ffd600;
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 214, 0, 0.5);
}
.lc-controls-row {
    display: flex;
    gap: 10px;
    width: 90%;
    justify-content: center;
}
.btn-lc {
    background: #333;
    margin: 0;
    padding: 20px;
    border: 1px solid #555;
    flex: 1;
}

/* ================================================================== */
/* 🟢 MOBILE APENAS (ICON-ONLY MODE) */
/* ================================================================== */
@media (max-width: 600px) {
    .nav-scroll-container {
        justify-content: space-around; 
    }
    .nav-item {
        padding: 0 5px;
        flex: 1; 
        text-align: center;
        justify-content: center;
        gap: 4px; 
    }
    .nav-label {
        display: none; 
    }
    .nav-icon {
        font-size: 1.6em;
        display: block;
    }
    .box { width: 98%; padding: 10px; }
    .table-responsive { overflow-x: auto; }
}

/* ================================================================== */
/* 🟢 IMPRESSÃO */
/* ================================================================== */
@media print {
    body * { visibility: hidden; }
    #area-etiqueta-impressao, #area-etiqueta-impressao * { visibility: visible; }
    #area-etiqueta-impressao { 
        position: fixed; 
        left: 0; 
        top: 0; 
        width: 62mm; 
        height: 20mm; 
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        border: none; 
        color: black; 
        background: white; 
        font-family: Arial, sans-serif; 
        padding: 1mm; 
        box-sizing: border-box; 
    }
    .etiqueta-dest { font-size: 8pt; text-align: center; white-space: nowrap; overflow: hidden; width: 100%; }
    .etiqueta-cod { font-size: 20pt; font-weight: bold; text-align: center; margin: 0; }
    .etiqueta-data { font-size: 7pt; text-align: center; }
    @page { size: 62mm 20mm; margin: 0; }
}