/* =============================================================
   MIND RADAR - GLOBAL (site.css)
   ============================================================= */

:root {
    --mr-bg: #0f1114;
    --mr-card: #16191c;
    --mr-border: #2d3238;
    --mr-orange: #FF851B;
}

html {
    scrollbar-gutter: stable;
}

body {
    background-color: var(--mr-bg);
    color: #e0e0e0;
    min-height: 100vh;
}

/* --- Layout --- */
@media (max-width: 767.98px) {
    .offcanvas-md {
        width: 280px;
    }
}

.min-vh-100 {
    min-height: 100vh !important;
}

/* --- Menu Lateral --- */
.nav-link {
    border-radius: 8px;
    margin-bottom: 5px;
    transition: 0.3s;
    color: #adb5bd;
}

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .nav-link.active {
        background-color: var(--mr-orange) !important;
        color: #000 !important;
        font-weight: bold;
    }

/* --- Estilo Base de Cards (Padrão MindRadar) --- */
.card-mr {
    background-color: var(--mr-card) !important;
    border: 1px solid var(--mr-border) !important;
    border-radius: 12px;
    color: #e0e0e0 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

    /* Reset de Títulos APENAS dentro de cards para evitar texto preto */
    .card-mr h1, .card-mr h2, .card-mr h3, .card-mr h4, .card-mr h5, .card-mr h6, .card-mr .display-6 {
        color: #ffffff; /* Removido o !important para permitir que classes de cor vençam */
    }

/* --- Utilitários de Cor (Aumentando especificidade) --- */
.text-orange {
    color: var(--mr-orange) !important;
}

.text-muted {
    color: #999999 !important;
}

.text-dark {
    color: #000000 !important;
}

/* Placeholder mais nítido para o tema Dark */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
}

/* Foco do input para não perder o brilho */
.form-control:focus {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-color: var(--mr-gold) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.1);
}

/* Alerta de senha forte */
.alert-password-requirement {
    background: rgba(255, 193, 7, 0.1);
    border: 1px dashed rgba(255, 193, 7, 0.4);
    color: #ffc107;
    font-size: 11px;
}

/* --- Botões e Inputs --- */
.btn-outline-orange {
    color: var(--mr-orange);
    border-color: var(--mr-orange);
}

    .btn-outline-orange:hover {
        background-color: var(--mr-orange);
        color: #000;
    }

.form-control, .form-select {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
    color: #fff !important;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--mr-orange) !important;
        box-shadow: 0 0 0 0.25rem rgba(255, 133, 27, 0.25);
    }

/* --- SweetAlert2 & Feedback --- */
.swal2-popup {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid #333;
}

.swal2-title, .swal2-html-container {
    color: #fff !important;
}

.swal2-icon {
    box-sizing: content-box !important;
    border-width: 4px !important;
}

    .swal2-icon .swal2-icon-content {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 3.5rem !important;
    }

/* --- Rodapé --- */
footer {
    font-size: 0.85rem;
    color: #6c757d;
}

    footer a:hover {
        color: var(--mr-orange) !important;
    }

/* =============================================================
   ESTILIZAÇÃO GLOBAL DE TABELAS (DARK MODE)
   ============================================================= */

/* Sobrescrita de variáveis do Bootstrap para tabelas */
.table {
    --bs-table-bg: transparent !important;
    --bs-table-color: #ffffff !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.04) !important;
    --bs-table-hover-color: #ffffff !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    vertical-align: middle;
}

    /* Ajuste fino dos cabeçalhos */
    .table thead th {
        background-color: rgba(255, 255, 255, 0.03) !important;
        color: #A3A3A3 !important; /* Texto discreto para o header */
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
        border-bottom: 2px solid rgba(255, 255, 255, 0.05) !important;
        padding: 12px 15px !important;
    }

    /* Células da tabela */
    .table td {
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    /* Remove a borda da última linha para não "vazar" do card */
    .table tbody tr:last-child td {
        border-bottom: 0 !important;
    }

/* Ajuste para tabelas dentro dos nossos cards padrão */
.card-mr .table {
    margin-bottom: 0;
}

.card-mr .table-responsive {
    border-radius: 12px; /* Garante que o hover da tabela não escape do card */
}

/* Ajuste do Switch para ficar Laranja quando ativo e ter visibilidade no Dark */
.custom-orange-switch .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    height: 1.5em;
    width: 2.8em;
}

    .custom-orange-switch .form-check-input:checked {
        background-color: #FF851B !important;
        border-color: #FF851B !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23000'/%3e%3c/svg%3e") !important;
    }

    .custom-orange-switch .form-check-input:focus {
        box-shadow: 0 0 0 0.25rem rgba(255, 133, 27, 0.25);
        border-color: #FF851B;
    }
