/* Reset e Definições Gerais */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}











body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #eef2f3;
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.container {
    background: #ffffff;
    width: 100%;
    max-width: 100%;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    align-self: flex-start;
}

/* Cabeçalhos */
h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: #000000;
}

.header-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 35px 70px;
    font-size: 26px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary { background-color: #3498db; color: white; }
.btn-primary:hover { background-color: #2980b9; }

.btn-done { background-color: #27ae60; color: white; }
.btn-done:hover { background-color: #219150; }

.btn-danger { background-color: #e74c3c; color: white; }
.btn-danger:hover { background-color: #c0392b; }

.btn-depto { 
    background-color: #00548b; 
    color: #ffffff; 
    width: 100%; 
    margin-bottom: 10px;
    border: 1px solid #dcdde1;
}
.btn-depto:hover { background-color: #0099ff; }


.btn-depto2 { 
    background-color: #ffe600; 
    color: #000000; 
    width: 100%; 
    margin-bottom: 10px;
    border: 1px solid #856404;
}
.btn-depto2:hover { background-color: #ffbb00; }


/* Cards de Atendimento Ativo */
.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: transform 0.2s;
}

.card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.timer {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #d35400;
    background: #fff5eb;
    padding: 4px 10px;
    border-radius: 5px;
    margin-left: 15px;
    font-weight: bold;
}

/* Senha na Tela do Cliente */
.senha-box {
    font-size: 5rem;
    font-weight: 800;
    color: #27ae60;
    margin: 30px 0;
    padding: 20px;
    background: #f1fcf4;
    border-radius: 15px;
}

.depto-label {
    font-size: 1.2rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tabelas de Histórico */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 40px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #7f8c8d;
}

tr:last-child td { border-bottom: none; }

/* Seções */
.secao-titulo {
    text-align: left;
    margin-top: 40px;
    font-size: 1.1rem;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

/* Impressão */
@media print {
    .no-print { display: none !important; }
    body { background: white; padding: 0; }
    .container { box-shadow: none; width: 100%; }
    .senha-box { font-size: 8rem; }
}

/* ... (mantenha o que já existia e adicione/atualize estas classes) ... */

@keyframes pulsar {
    0% { box-shadow: 0 0 0px rgba(52, 152, 219, 0.4); border-color: #dcdde1; }
    50% { box-shadow: 0 0 15px rgba(52, 152, 219, 0.8); border-color: #3498db; }
    100% { box-shadow: 0 0 0px rgba(52, 152, 219, 0.4); border-color: #dcdde1; }
}

.card-novo {
    animation: pulsar 2s infinite;
    border: 2px solid #3498db !important;
    background-color: #f0f7ff !important;
}

.timer {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #d35400;
    background: #fff5eb;
    padding: 4px 10px;
    border-radius: 5px;
    margin-left: 15px;
    font-weight: bold;
}

/* Layout em blocos/colunas para o Admin */
.grid-departamentos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

.coluna-setor {
    background: #fdfdfd;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 15px;
    min-height: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.coluna-setor h4 {
    font-size: 1rem;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
    text-align: left;
    margin-bottom: 15px;
    min-height: 50px; /* Garante alinhamento dos títulos */
    display: flex;
    align-items: center;
}

/* Ajuste nos cards dentro das colunas */
.coluna-setor .card {
    flex-direction: column; /* Empilha o texto e o botão em blocos pequenos */
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
}

.coluna-setor .btn {
    width: 100%; /* Botão ocupa toda a largura do card interno */
    text-align: center;
}


/* Senha Prioritária */
.senha-box.prioritaria {
    background: #ffc107;
    color: #000;
    border: 3px solid #d39e00;
}

.prioritaria-card {
    border-left: 8px solid #ffc107 !important;
    background-color: #fffdf5 !important;
}

/* Animação de Pulsar Prioritário */
.prioritaria-card.card-novo {
    animation: pulsarPrio 2s infinite;
}

@keyframes pulsarPrio {
    0% { box-shadow: 0 0 0px rgba(255, 193, 7, 0.4); }
    50% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.7); background-color: #fff3cd; }
    100% { box-shadow: 0 0 0px rgba(255, 193, 7, 0.4); }
}