/* Variáveis de Cores e Estilo */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-body: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Reset e Base */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }

body { 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    min-height: 100vh;
}

/* Sistema de Cards (Utilizado em titular.php, usuarios.php, etc) */
.grid-titulares {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.card-titular {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.card-header { border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; margin-bottom: 15px; }
.card-header h3 { font-size: 1.1rem; color: var(--text-main); margin-top: 8px; }

/* Badges de Identificação */
.badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
}
.badge.matriz { background: #dcfce7; color: #15803d; }
.badge.filial { background: #fef9c3; color: #a16207; }

.card-body p { font-size: 0.9rem; margin-bottom: 8px; color: var(--text-muted); }
.card-body strong { color: var(--text-main); }

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Alertas/Balões de Mensagem (Com Emojis) */
.alert-box {
    background: #fee2e2;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--danger);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
