/* --- ESTILOS GLOBAIS --- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- COMPONENTE SPINNER (Tela de Carregamento) --- */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(229, 231, 235, 0.5); /* Cinzento claro (Tailwind gray-200) */
    border-left-color: #2563EB; /* Azul Royal (Tailwind blue-600) */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- NAVEGAÇÃO (Abas) --- */
/* Estilos para os botões do menu superior */
.nav-button {
    display: inline-flex;
    align-items: center;
    padding: 0 0.5rem;
    height: 100%;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

/* Estado Ativo (Aba selecionada) */
.nav-button.active {
    color: #2563EB; /* blue-600 */
}
.nav-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563EB;
}

/* Estado Hover (Ao passar o rato) */
.nav-button:hover:not(.active) {
    color: #111827; /* gray-900 */
}

/* --- BARRA DE ROLAGEM (Scrollbar) --- */
/* Deixa a barra de rolagem mais elegante e fina */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6; /* gray-100 */
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB; /* gray-300 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF; /* gray-400 */
}

/* --- UTILITÁRIOS --- */
/* Garante que elementos ocultos não ocupem espaço */
.hidden {
    display: none !important;
}

/* Transições suaves para os cartões */
.view {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
