/* ==========================================================================
   ESTRUTURA DA PÁGINA (Baseado no padrão ControlGrid)
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --preto-profundo: #0a0a0b;
    --cinza-chumbo: #161b22;
    --azul-ciano: #00f2ff;
    --verde-eletrico: #00ff88; 
    --texto-principal: #f5f5f7;
}


body.login-body {
    background-color: var(--preto-profundo);
    color: var(--texto-principal);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.cadastro-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.cadastro-card {
    background: var(--cinza-chumbo);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Header do Card */
.login-header h2 {
    color: var(--texto-principal);
    font-size: 2rem;
    margin-bottom: 5px;
}

.login-header span {
    color: var(--azul-ciano);
}

/* ==========================================================================
   TABS E NAVEGAÇÃO
   ========================================================================== */

.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #30363d;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--texto-suave);
    padding: 10px 5px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    border-bottom: 2px solid var(--verde-eletrico);
    color: var(--verde-eletrico) !important;
}

.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
    animation: fadeIn 0.4s ease-out;
}

/* ==========================================================================
   INPUTS E BOTÕES
   ========================================================================== */

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--texto-principal);
}

.input-group input[type="text"],
.input-group input[type="email"] {
    width: 100%;
    padding: 14px;
    background: var(--preto-profundo);
    border: 1px solid #30363d;
    color: var(--texto-principal);
    border-radius: 6px;
}

.btn-cadastrar {
    width: 100%;
    padding: 14px;
    background-color: var(--azul-ciano);
    color: var(--preto-profundo);
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-cadastrar:hover {
    background-color: var(--verde-eletrico);
    transform: translateY(-2px);
}

.btn-entrar { /* Usado para o botão 'Voltar' */
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* Estilo do input de arquivo */
input[type="file"]::file-selector-button {
    background: var(--cinza-chumbo);
    color: var(--azul-ciano);
    border: 1px solid var(--azul-ciano);
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

input[type="file"]::file-selector-button:hover {
    background: var(--azul-ciano);
    color: var(--preto-profundo);
}

/* ANIMAÇÃO */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Classe para destacar erro no input */
.input-error {
    border: 1px solid #ff4d4d !important;
    background-color: rgba(255, 77, 77, 0.05) !important;
    outline: none;
}

/* Opcional: animação de balanço (shake) para chamar atenção */
.shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

#descricao_texto {
    white-space: pre-wrap;      /* Mantém as quebras de linha que o usuário digitou */
    word-wrap: break-word;      /* Força a quebra de palavras gigantes */
    max-height: 200px;          /* Limita a altura */
    overflow-y: auto;           /* Adiciona scroll se for um "testamento" */
    padding-right: 5px;
}

/* ==========================================================================
   COMPLIANCE & ÉTICA - DASHBOARD STYLE
   ========================================================================== */

.compliance-container {
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

/* Header e Filtros */
.compliance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: var(--cinza-chumbo);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 242, 255, 0.05);
}

.controles-esquerda {
    display: flex;
    gap: 10px;
}

.input-busca, .input-select {
    background: var(--preto-profundo);
    border: 1px solid #30363d;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    outline: none;
}

.input-busca:focus { border-color: var(--azul-ciano); }

/* Badges de Status na Tabela */
.status-pill {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-aberto { background: rgba(0, 242, 255, 0.1); color: var(--azul-ciano); border: 1px solid var(--azul-ciano); }
.status-em_analise { background: rgba(255, 170, 0, 0.1); color: #ffaa00; border: 1px solid #ffaa00; }
.status-concluido { background: rgba(0, 255, 136, 0.1); color: var(--verde-eletrico); border: 1px solid var(--verde-eletrico); }
.status-arquivado { background: rgba(148, 163, 184, 0.1); color: #94a3b8; border: 1px solid #94a3b8; }

.protocolo-badge {
    font-family: 'Courier New', Courier, monospace;
    background: #000;
    color: var(--azul-ciano);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

/* Grid do Modal de Dossie */
.modal-largo { max-width: 900px !important; width: 95%; }

.grid-dossie {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.caixa-texto {
    background: var(--preto-profundo);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--azul-ciano);
    margin-bottom: 20px;
    line-height: 1.6;
    color: #cbd5e1;
}

.card-info-tecnica, .card-acoes-status {
    background: #0d1117;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #30363d;
    margin-bottom: 15px;
}

.card-info-tecnica h4 {
    color: var(--azul-ciano);
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-info-tecnica p {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #94a3b8;
}

.card-info-tecnica span { color: white; }

/* Evidências */
.container-evidencias {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.evidencia-card {
    background: #161b22;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #30363d;
}

.btn-view-file {
    font-size: 0.75rem;
    color: var(--azul-ciano);
    text-decoration: none;
    border: 1px solid var(--azul-ciano);
    padding: 2px 8px;
    border-radius: 3px;
}

.btn-view-file:hover { background: var(--azul-ciano); color: black; }