/* static/css/etp_modern.css */

:root {
    --fzea-primary: #2894ac; /* Cor oficial FZEA */
    --fzea-primary-hover: #207a8c;
    --fzea-secondary: #6c757d;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* ALTERAÇÃO 1: Fundo mais escuro para contraste com os cards brancos */
    background-color: #e3e6ec; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* --- Cores Personalizadas --- */
.bg-custom {
    background-color: var(--fzea-primary) !important;
}

.text-custom {
    color: var(--fzea-primary) !important;
}

.btn-custom {
    background-color: var(--fzea-primary);
    border-color: var(--fzea-primary);
    color: #fff;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-custom:hover {
    background-color: var(--fzea-primary-hover);
    border-color: var(--fzea-primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 148, 172, 0.2);
}

/* --- Login Card --- */
.login-card {
    border: none;
    border-radius: 1rem;
    /* ALTERAÇÃO 2: Sombra mais forte para destacar do fundo */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
    background-color: #fff;
}

.login-header {
    background-color: var(--fzea-primary);
    color: white;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

/* --- Cards Gerais (Home, Perfil, etc) --- */
.card-custom {
    border: none;
    border-radius: 0.75rem;
    /* ALTERAÇÃO 2: Sombra mais forte */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
    margin-bottom: 1.5rem;
    background-color: #fff;
}

.card-header-custom {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--fzea-primary);
    border-top-left-radius: 0.75rem !important;
    border-top-right-radius: 0.75rem !important;
}

/* --- Navegação --- */
.navbar {
    /* Pequena sombra na navbar também */
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.2s;
}
.navbar-nav .nav-link:hover {
    color: rgba(255,255,255,0.9) !important;
}
.navbar-nav .nav-link.active {
    font-weight: 700;
    color: #fff !important;
    border-bottom: 2px solid rgba(255,255,255,0.8);
}

/* --- Tabelas --- */
.table-hover tbody tr:hover {
    background-color: rgba(40, 148, 172, 0.05);
}

/* --- Chat Assistant --- */
.chat-window {
    /* Fundo levemente cinza dentro da área de chat para destacar as bolhas brancas */
    background-color: #f4f6f9 !important; 
    border: 1px solid #dee2e6;
}

.chat-message.user {
    background-color: #d1e7dd; /* Verde claro suave */
    color: #0f5132;
    border-radius: 15px 15px 0 15px;
    border: 1px solid #badbcc;
}

.chat-message.ai {
    background-color: #ffffff;
    border-radius: 15px 15px 15px 0;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* --- Formulários --- */
.form-control:focus, .form-select:focus {
    border-color: var(--fzea-primary);
    box-shadow: 0 0 0 0.25rem rgba(40, 148, 172, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.password-input-wrapper {
    position: relative;
}
.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
}
.password-toggle-btn:hover {
    color: var(--fzea-primary);
}

/* --- Loader / Overlay --- */
.spinner-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* --- Carrossel de Unidades (Login) --- */
.units-ticker-container {
    min-height: 60px; /* Reserva espaço para não pular a tela */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    overflow: hidden;
}

.unit-badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fzea-primary); /* Azul do sistema */
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-in-out;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.unit-badge.visible {
    opacity: 0.6; /* Leve transparência para não brigar com o logo */
    transform: translateY(0);
}

.unit-badge.visible:hover {
    opacity: 1;
    transform: scale(1.1);
    cursor: default;
}
