/* ==========================================================================
   CONFIGURAÇÕES GLOBAIS / RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f3f4f6; /* Cinza claro de fundo */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container que limita o tamanho para parecer celular mesmo no PC */
.app-container {
    width: 100%;
    max-width: 400px;
}

/* Card de Login */
.login-card {
    background-color: #ffffff;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Cabeçalho */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.login-header h2 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

/* Formulários e Inputs Gerais */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 14px; /* Input mais alto, mais fácil de tocar no celular */
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px; /* Evita que o iOS dê zoom automático no input */
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #2563eb; /* Azul Equatorial/padrão corporativo */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Botão de Ação Padrão (Colaborador) */
button {
    width: 100%;
    padding: 14px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

button:hover {
    background-color: #1d4ed8;
}

button:active {
    background-color: #1e40af;
}

/* Caixa de Erro */
.error-box {
    display: flex;
    align-items: flex-start;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
}

.error-icon {
    font-size: 18px;
    margin-right: 8px;
}

.error-box p {
    color: #991b1b;
    font-size: 13px;
    line-height: 1.4;
}

/* ==========================================================================
   ESTILOS DO PAINEL INTERNO (COLABORADOR)
   ========================================================================== */
.painel-header {
    margin-bottom: 24px;
    background-color: #2563eb;
    color: white;
    padding: 20px;
    border-radius: 12px;
}

.painel-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.painel-header p {
    font-size: 13px;
    opacity: 0.9;
}

.card-painel {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.card-painel h4 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sub-painel {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.4;
}

.mural-conteudo {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    text-align: left;
}

.video-placeholder {
    background-color: #f3f4f6;
    border: 2px dashed #d1d5db;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    margin-top: 12px;
    color: #2563eb;
    font-weight: 500;
    cursor: pointer;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    resize: none;
    outline: none;
}

textarea:focus {
    border-color: #2563eb;
}

/* ==========================================================================
   LAPIDAÇÃO VISUAL - TERMÔMETRO CORPORATIVO
   ========================================================================== */
.botoes-humor {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-humor {
    flex: 1;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    color: #1f2937;
    padding: 16px 10px;
    font-size: 32px; /* Emoji maior e marcante */
    border-radius: 14px;
    cursor: pointer;
    margin-top: 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-humor:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px); /* Levitada do botão */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

.btn-humor span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin-top: 6px;
    transition: color 0.2s;
}

.btn-humor.selecionado {
    background-color: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.btn-humor.selecionado span {
    color: #2563eb;
}

#feedbackSucesso {
    animation: surgimentoSucesso 0.4s ease-out;
}

#feedbackSucesso h4 {
    color: #166534;
    font-size: 18px;
    margin-top: 10px;
}

#feedbackSucesso p {
    color: #4b5563;
    font-size: 14px;
    margin-top: 6px;
    line-height: 1.5;
}

@keyframes surgimentoSucesso {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   PAINEL ADMINISTRATIVO (RH) - CORREÇÃO DE LAYOUT BLINDADO
   ========================================================================== */
.body-admin {
    background-color: #f3f4f6;
    color: #1f2937;
    padding: 20px;
    display: block; /* Garante que ocupa a tela inteira */
    min-height: 100vh;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

header.admin-header {
    background-color: #1e3a8a;
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.admin-header h1 {
    font-size: 22px;
    color: white;
    margin: 0;
}

/* GRÁFICO E METRICAS (DASHBOARD TOP) */
.dashboard-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .dashboard-top {
        flex-direction: row;
    }
    .metrics-grid { width: 40%; }
    .chart-card { width: 60%; }
}

.metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-card {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.metric-title {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-top: 5px;
}

.metric-card.card-alerta {
    border-left: 4px solid #ef4444;
}
.metric-card.card-alerta .metric-value {
    color: #ef4444;
}

.chart-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.chart-container {
    position: relative;
    height: 180px;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ESTRUTURA GRID FLEX SEPARADA PARA OS CARDS INFERIORES */
.grid-admin {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .grid-admin {
        flex-direction: row;
        align-items: flex-start;
    }
    .col-esquerda {
        width: 35%;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .col-direita {
        width: 65%;
    }
}

/* Padronização dos Cards do Painel Admin */
.admin-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    text-align: left;
    width: 100%;
}

.admin-card h3, .admin-card h4 {
    margin-bottom: 15px;
    color: #111827;
    font-size: 18px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 8px;
    text-align: left;
}

/* Formulários Internos do Admin */
.form-group-admin {
    margin-bottom: 15px;
    text-align: left;
}

.form-group-admin label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #4b5563;
}

.form-group-admin input, .form-group-admin textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    color: #1f2937;
    background: white;
}

.btn-admin-primary {
    width: 100%;
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
}

.btn-admin-primary:hover {
    background-color: #1d4ed8;
}

/* Feed / Histórico de Respostas */
.feedback-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: left;
    transition: all 0.3s ease;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.badge-humor {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
}

.badge-bom { background: #dcfce7; color: #166534; }
.badge-regular { background: #fef9c3; color: #854d0e; }
.badge-ruim { background: #fee2e2; color: #991b1b; }

.txt-desabafo {
    font-size: 14px;
    color: #374151;
    font-style: italic;
    background: white;
    padding: 10px;
    border-left: 3px solid #cbd5e1;
    margin-top: 8px;
    border-radius: 0 4px 4px 0;
}

.feedback-item:has(.badge-ruim) {
    border: 2px solid #ef4444;
    background: #fff5f5;
    animation: pulsoAlertaRH 2.5s infinite ease-in-out;
}

@keyframes pulsoAlertaRH {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Tela de Segurança Inicial por Senha */
#telaLoginAdmin {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111827;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.box-senha {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 360px;
}   
/* TOPO FLUIDO DO PAINEL OPERACIONAL */
.painel-topo-nav {
    width: 100%;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.painel-topo-nav h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.btn-nav-escape {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-nav-escape:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}
/* ==========================================================================
   CLASSES NOVAS PARA O PRIMEIRO ACESSO (MÓDULO DE TURNOVER/CLIMA)
   ========================================================================== */
.badge-primeiro-acesso { 
    background: #fef3c7; 
    color: #92400e; 
    border: 1px solid #fde68a; 
    padding: 12px; 
    border-radius: 8px; 
    font-size: 12px; 
    font-weight: 500; 
    margin-bottom: 16px; 
    text-align: left; 
    line-height: 1.4;
}

.input-hidden { 
    display: none !important; 
}

.margin-top-input { 
    margin-top: 12px; 
}