/* =========================================
   1. IMPORTAÇÃO DE FONTE E VARIÁVEIS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Cores do Sistema (SaaS Blue) */
    --primary-blue: #0091E6;      /* Azul Principal */
    --primary-dark: #46505A;      /* Cinza escuro (Menu/Detalhes) */
    --action-green: #2ECC71;      /* Verde (Ações positivas) */
    
    /* Fundos */
    --bg-body: #F1F5F9;           /* Fundo cinza-azulado claro */
    --bg-card: #FFFFFF;
    --white: #FFFFFF;
    
    /* Texto */
    --text-main: #34495E;
    --text-muted: #7F8C8D;
    --text-light: #FFFFFF;
    
    /* Estrutura */
    --radius-card: 12px;
    --radius-btn: 50px;           /* Botões Pill (arredondados) */
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 25px rgba(0, 145, 230, 0.15);
    
    /*botoẽs */
    --border: #E2E8F0; 
}

/* =========================================
   2. RESET E BASE
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    padding: 20px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; transition: 0.2s; }

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   3. CABEÇALHO (DASHBOARD)
   ========================================= */
.admin-header {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 25px 30px;
    border-radius: 16px var(--radius-card);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); 
    border: 1px solid var(--border);
    margin-bottom: 30px;
   
}

.admin-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex; align-items: center; gap: 10px;
}

.admin-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Botões Gerais */
.btn {
    padding: 8px 24px;
    border-radius: var(--radius-btn);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: inline-flex; align-items: center; gap: 8px;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.btn-warning { background-color: var(--primary-dark); }
.btn-danger { background-color: #e74c3c; }
.btn-success { background-color: var(--action-green); }
.btn-logout { background: white; border: 1px solid var(--border); color: #EF4444; padding: 8px 15px; border-radius: 8px; font-weight: 600; font-size:0.9rem; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; }
.btn-logout:hover { background: #FEF2F2; border-color: #FCA5A5; }

/* =========================================
   4. CARDS DE ESTATÍSTICA
   ========================================= */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.stats-box {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    padding: 0;
    display: flex; flex-direction: column;
}

.stats-box h3 {
    background: var(--primary-blue);
    color: #fff;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.stats-box h3 span i { margin-right: 8px; color: rgba(255,255,255, 0.8); }

.stats-box h3 small {
    font-weight: 400;
    font-size: 0.75rem;
    background: rgba(255,255,255, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
}

.stats-box > *:not(h3) {
    padding-left: 25px;
    padding-right: 25px;
}
.stats-box .prog-row:first-of-type,
.stats-box .rank-item:first-of-type {
    margin-top: 25px;
}
.stats-box .total-stat {
    margin-bottom: 25px;
}

/* Barras de Progresso */
.prog-row {
    margin-bottom: 18px;
    display: flex; align-items: center;
}

.prog-name {
    width: 30%;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.prog-bar-bg {
    flex: 1;
    height: 10px;
    background: #EFF2F7;
    border-radius: 10px;
    margin: 0 15px;
    overflow: hidden;
}

.prog-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.prog-val { width: 50px; text-align: right; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }

/* Ranking */
.rank-item {
    padding: 12px 0;
    border-bottom: 1px solid #EFF2F7;
    display: flex; justify-content: space-between;
}
.rank-item:last-child { border: none; }

.rank-badge {
    background: #EFF2F7;
    color: var(--text-main);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.total-stat {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #EFF2F7;
    text-align: center;
}
.total-stat span:first-child {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* =========================================
   5. MINISTÉRIOS (CLEAN GRID)
   ========================================= */
.section-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 600;
    border-left: 5px solid var(--action-green);
    padding-left: 15px;
}

.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.mini-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-card);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
    transition: 0.3s;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    color: var(--text-main);
}

.mini-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.mini-card i {
    font-size: 1.8rem;
    color: var(--primary-blue);
    background: #EFF9FF;
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.mini-card span { font-weight: 600; font-size: 0.9rem; }

/* =========================================
   6. ESCALAS DE HOJE (LISTA CARD)
   ========================================= */
.today-section {
    margin-top: 50px;
    border-top: 1px solid #E0E6ED;
    padding-top: 30px;
}

.today-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    display: flex; align-items: center; gap: 10px;
}

.today-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.card-today {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid #EFF2F7;
}

.card-today-header {
    background: #FAFBFC;
    padding: 15px 20px;
    border-bottom: 1px solid #EFF2F7;
    font-weight: 600;
    color: var(--text-main);
    display: flex; justify-content: space-between; align-items: center;
}

.badge-turno {
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.card-today-body { padding: 10px 0; }

.card-today li {
    padding: 10px 20px;
    border-bottom: 1px solid #f9f9f9;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 12px;
}

/* Checkbox visual fake */
.card-today li::before {
    content: '\f00c'; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    width: 18px; height: 18px;
    background: var(--primary-blue);
    border-radius: 4px;
}

/* =========================================
   7. TELA DE LOGIN (SEM SCROLL)
   ========================================= */
body.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Trava o scroll */
    background-color: var(--bg-body);
    margin: 0;
}

.login-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border-top: 5px solid var(--primary-blue);
    max-height: 90vh;
    overflow-y: auto;
}

.login-container::-webkit-scrollbar { width: 0px; background: transparent; }

.input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.input-group i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: 0.3s;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #E0E6ED;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #FAFBFC;
    outline: none;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.input-group input:focus {
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 145, 230, 0.1);
}

.input-group input:focus + i { color: var(--primary-blue); }

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #0091E6;
    color: white;
    border: none;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 145, 230, 0.2);
}

.btn-login:hover {
    background-color: #007bb8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 145, 230, 0.3);
}

.alert-error {
    background-color: #FEF2F2;
    color: #EF4444;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border: 1px solid #FEE2E2;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.footer-text {
    margin-top: 30px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   8. PÁGINA LIVE (OPERAÇÃO)
   ========================================= */
.live-container {
    background-color: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 30px;
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid #EFF2F7;
}

.live-header { text-align: center; margin-bottom: 30px; }
.live-header h2 { color: var(--text-main); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.5rem; }

.date-nav {
    display: flex; justify-content: center; align-items: center; gap: 15px; margin: 20px auto;
    background: #FAFBFC; padding: 8px 15px; border-radius: 50px; width: fit-content;
    border: 1px solid #E0E6ED;
}
.date-nav input { border: none; background: transparent; font-size: 1rem; font-weight: 600; color: var(--text-main); text-align: center; font-family: inherit; cursor: pointer; outline: none; }
.btn-nav { background: #fff; border: 1px solid #E0E6ED; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); font-size: 0.8rem; transition: 0.2s; }
.btn-nav:hover { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); transform: scale(1.1); }

.turnos-bar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #EFF2F7; }
.btn-turno { padding: 10px 25px; border: 1px solid #E0E6ED; background: #FAFBFC; border-radius: 30px; font-weight: 600; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 8px; }
.btn-turno:hover { background: #fff; border-color: var(--primary-blue); color: var(--primary-blue); }
.btn-turno.active { background: var(--primary-blue); color: white; border-color: var(--primary-blue); box-shadow: 0 4px 10px rgba(0, 145, 230, 0.3); }

.turno-content { display: none; animation: fadeIn 0.4s ease-out; }
.turno-content.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }

.live-card { background: #fff; border: 1px solid #EFF2F7; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform 0.2s; }
.live-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-header-live { padding: 15px 20px; color: white; font-weight: 600; display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; }
.card-body-live { padding: 10px 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 12px 20px; border-bottom: 1px solid #FAFBFC; display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text-main); cursor: pointer; transition: background 0.2s; }
.check-list li:hover { background-color: #FAFBFC; }
.check-list li:last-child { border-bottom: none; }

.check-circle { width: 22px; height: 22px; border: 2px solid #D1D5DB; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; background: #fff; }
.check-circle.checked { background: var(--action-green); border-color: var(--action-green); }
.check-circle.checked::after { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: white; font-size: 0.7rem; }

.nome-obreiro { transition: color 0.2s; font-weight: 500; }
.nome-obreiro.checked { text-decoration: line-through; color: var(--text-muted); opacity: 0.7; }
.empty-state { text-align: center; color: var(--text-muted); padding: 60px 20px; background: #FAFBFC; border-radius: var(--radius-card); border: 2px dashed #E0E6ED; }

/* Botões de Ação Live */
.worker-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-bottom: 1px solid #FAFBFC; transition: background 0.2s; }
.worker-item:last-child { border-bottom: none; }
.worker-item:hover { background-color: #FAFBFC; }
.worker-info { display: flex; align-items: center; gap: 12px; cursor: pointer; flex-grow: 1; }
.worker-actions { display: flex; align-items: center; gap: 5px; }
.btn-action { width: 30px; height: 30px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: #D1D5DB; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: all 0.2s ease; }
.btn-delay:hover { color: #F59E0B; background: #FFFBEB; }
.btn-delay.active { background: #F59E0B; color: white; box-shadow: 0 2px 5px rgba(245, 158, 11, 0.3); }
.btn-absent:hover { color: #EF4444; background: #FEF2F2; }
.btn-absent.active { background: #EF4444; color: white; box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3); }
.nome-obreiro.absent-text { text-decoration: line-through; color: #EF4444; opacity: 0.6; }

/* =========================================
   9. MENU DROPDOWN (CORRIGIDO)
   ========================================= */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; right: 0; top: 100%; background-color: #ffffff; min-width: 220px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-radius: 12px; padding: 8px 0; z-index: 1000; border: 1px solid #EFF2F7; margin-top: 8px; animation: fadeIn 0.2s ease-out; }
/* Ponte invisível para o hover não falhar */
.dropdown-content::before { content: ""; position: absolute; top: -15px; left: 0; width: 100%; height: 20px; background: transparent; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-item { color: var(--text-main); padding: 12px 20px; text-decoration: none; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.dropdown-item i { color: var(--text-muted); width: 20px; text-align: center; transition: color 0.2s; }
.dropdown-item:hover { background-color: #F4F7FC; color: var(--primary-blue); }
.dropdown-item:hover i { color: var(--primary-blue); }

/* =========================================
   10. PAINEL OBREIRO (WIDGETS)
   ========================================= */
.widget-box { padding: 0; overflow: hidden; margin-bottom: 25px; }
.widget-header { padding: 15px 20px; background: #FAFBFC; border-bottom: 1px solid #EFF2F7; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.widget-body { padding: 20px; }

/* Grid de Seleção de Pendências (Ícones) */
.pending-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; margin-bottom: 20px; }
.pending-card { background: #fff; border: 2px solid #E5E7EB; border-radius: 10px; padding: 15px 10px; text-align: center; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.pending-card:hover { border-color: #9CA3AF; transform: translateY(-2px); }
.pending-card.selected { border-color: var(--primary-blue); background-color: #EFF6FF; box-shadow: 0 4px 12px rgba(0, 145, 230, 0.2); transform: translateY(-2px); }
.pending-card.selected::after { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; top: -8px; right: -8px; background: var(--primary-blue); color: white; width: 20px; height: 20px; border-radius: 50%; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.pend-icon { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.type-falta { color: #EF4444; }
.type-atraso { color: #F59E0B; }
.pend-date { display: block; font-weight: 700; color: var(--text-main); font-size: 0.95rem; margin-bottom: 2px; }
.pend-label { font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; }

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 768px) {
    body { padding: 10px; }
    .container, .live-container { padding: 15px; width: 100%; }
    .main-grid, .dashboard-grid, .ministry-grid, .today-grid, .turno-content.active { grid-template-columns: 1fr !important; gap: 15px; }
    .live-header h2 { font-size: 1.2rem; flex-direction: column; gap: 5px; }
    .date-nav { width: 100%; justify-content: space-between; padding: 8px 10px; gap: 5px; }
    .turnos-bar { gap: 8px; justify-content: stretch; }
    .btn-turno { flex: 1; justify-content: center; text-align: center; white-space: nowrap; font-size: 0.8rem; padding: 8px 15px; }
    .btn { width: 100%; justify-content: center; margin-bottom: 5px; }
    .admin-header { flex-direction: column; gap: 15px; text-align: center; }
    .admin-header div[style="text-align:right;"] { display: flex; flex-direction: column; width: 100%; gap: 10px; }
    .admin-header .btn { margin: 0 !important; }
    
    /* Botão Voltar como Ícone */
    .btn-back .text-voltar { display: none; }
    .btn-back { width: 40px !important; height: 40px; padding: 0 !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0; font-size: 1.1rem; }
    .live-header > div:first-child { display: flex; justify-content: space-between; align-items: center; width: 100%; }
    .btn-text-mobile { display: none; } /* Esconde texto de botões grandes no topo do painel */
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* =========================================
   13. CORREÇÕES VISUAIS FINAIS (LIVE)
   ========================================= */

/* CORREÇÃO DO BOTÃO VOLTAR (Texto Escuro) */
.btn-back {
    background-color: #E2E8F0 !important; /* Cinza mais forte */
    color: #334155 !important; /* Texto Chumbo Escuro */
    border: 1px solid #CBD5E1 !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-back:hover {
    background-color: #CBD5E1 !important;
    color: #0F172A !important;
}

/* CORREÇÃO DOS ÍCONES ATIVOS (Forçar Cor) */
/* Quando tiver a classe .active, a cor TEM que aparecer */

/* Atraso (Amarelo/Laranja) */
.btn-delay.active {
    background-color: #FEF3C7 !important;
    color: #D97706 !important;
    border-color: #F59E0B !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* Falta (Vermelho) */
.btn-absent.active {
    background-color: #FEE2E2 !important;
    color: #DC2626 !important;
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Texto Riscado Vermelho */
.nome-obreiro.absent-text {
    text-decoration: line-through;
    color: #EF4444 !important;
    opacity: 0.7;
}
/* =========================================
   14. ESTILO DE MODAL (MODERNO)
   ========================================= */

/* Fundo Escuro com Desfoque */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Azul escuro transparente */
    backdrop-filter: blur(4px); /* Efeito de vidro fosco */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-out;
}

/* Caixa do Modal */
.modal-content {
    background: #ffffff;
    padding: 0; /* Padding removido para usar header/body */
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #EFF2F7;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

/* Cabeçalho do Modal */
.modal-header {
    background: #FAFBFC;
    padding: 20px 25px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 700;
}

.close-modal {
    cursor: pointer;
    font-size: 1.5rem;
    color: #94A3B8;
    line-height: 1;
    transition: 0.2s;
}
.close-modal:hover { color: #EF4444; }

/* Corpo do Modal */
.modal-body {
    padding: 25px;
}

/* Rodapé do Modal (Botões) */
.modal-footer {
    padding: 15px 25px;
    background: #FAFBFC;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Label dos Inputs no Modal */
.modal-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Input Select estilizado */
.input-std {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
    background-color: #fff;
    outline: none;
    transition: all 0.2s;
}
.input-std:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 145, 230, 0.1);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* =========================================
   BOTÕES GHOST (Fundo Branco)
   ========================================= */
.btn-ghost {
    background: white; 
    border: 1px solid #E2E8F0; 
    color: #64748B;
    
    /* Altura fixa para alinhar com outros botões */
    height: 36px;
    padding: 0 15px;
    
    border-radius: 8px; 
    font-weight: 500; 
    font-size: 0.85rem;
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    transition: 0.2s;
}

.btn-ghost:hover { 
    background: #F8FAFC; 
    color: var(--primary-blue); 
    border-color: var(--primary-blue); 
}

/* Cores dos ícones internos */
.icon-team { color: #F59E0B; }
.icon-whats { color: #10B981; }
.icon-pdf { color: #6366F1; }
.icon-danger { color: #EF4444; }
/* --- ESTILOS DOS BOTÕES DE AÇÃO NA TABELA --- */
        
        .action-cell { 
            display: flex; 
            justify-content: flex-end; /* Alinha à direita */
            align-items: center; 
            gap: 8px; /* Espaço entre os botões */
            height: 100%;
        }

        .btn-action-icon {
            width: 32px; 
            height: 32px; 
            border-radius: 6px; 
            display: flex; 
            align-items: center; 
            justify-content: center;
            color: #94A3B8; /* Cinza padrão */
            background: transparent;
            border: 1px solid transparent;
            transition: all 0.2s ease;
            text-decoration: none;
            font-size: 0.95rem;
        }

        /* Cores no Hover */
        .btn-view:hover { 
            background: #E0F2FE; color: #0284C7; border-color: #BAE6FD; 
        }
        .btn-edit:hover { 
            background: #EEF2FF; color: #4F46E5; border-color: #C7D2FE; 
        }
        .btn-delete:hover { 
            background: #FEF2F2; color: #DC2626; border-color: #FECACA; 
        }
        /* Botão de Status Online */
.btn-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ECFDF5; /* Fundo verde bem claro */
    color: #059669;      /* Texto verde escuro */
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #A7F3D0;
    margin-right: 10px;
    transition: all 0.2s;
}

.btn-online-badge:hover {
    background: #D1FAE5;
    transform: translateY(-1px);
}

/* Bolinha Pulsante */
.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Mobile: Ajuste para não quebrar o layout */
@media (max-width: 768px) {
    .btn-online-badge { padding: 8px; }
    .btn-online-badge span { display: none; } /* Esconde texto "Online", mostra só número */
}
/* --- CSS DO CHECKLIST LIVE --- */
.checklist-live-box {
    background: #fff; border: 1px solid #E2E8F0; border-radius: 12px;
    margin-bottom: 30px; overflow: hidden;
}
.check-header {
    background: #F8FAFC; padding: 12px 20px; font-weight: 700; color: #475569;
    border-bottom: 1px solid #E2E8F0; display: flex; align-items: center; gap: 8px;
}
.check-grid {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% para cada item */
    gap: 15px; /* Espaço entre eles */
}
.check-card {
    display: flex; align-items: center; gap: 10px; padding: 10px;
    border: 1px solid #E2E8F0; border-radius: 8px; cursor: pointer;
    transition: all 0.2s; user-select: none;
}
.check-card:hover { background: #F1F5F9; }
.check-card input { width: 18px; height: 18px; accent-color: #10B981; cursor: pointer; }
.check-card span { font-size: 0.9rem; color: #334155; font-weight: 500; }

/* Estilo quando marcado */
.check-card.item-done { background: #ECFDF5; border-color: #A7F3D0; }
.check-card.item-done span { color: #065F46; text-decoration: line-through; }