/* --- IMPORTAÇÃO DE FONTES E ÍCONES --- */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

/* --- CONFIGURAÇÕES GERAIS --- */
body {
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* --- CORES PERSONALIZADAS (IDENTIDADE GELB) --- */
.bg-custom-yellow { background-color: #f5c745; }
.text-custom-yellow { color: #f5c745; }
.border-custom-yellow { border-color: #f5c745; }
.ring-custom-yellow:focus { --tw-ring-color: #f5c745; }

/* Hover states para o amarelo */
.hover\:bg-custom-yellow-dark:hover { background-color: #e0b63e; }

/* --- COMPONENTES DE BOTÃO --- */
.btn-primary {
    background-color: #f5c745;
    color: black;
    font-weight: 700;
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    background-color: #e0b63e;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Botão Escuro (Dashboard) */
.btn-black {
    background-color: #1e293b;
    color: white;
    transition: background-color 0.2s;
}

.btn-black:hover {
    background-color: #0f172a;
}

/* --- ANIMAÇÕES E TRANSIÇÕES --- */
.transition-opacity {
    transition: opacity 0.3s ease-in-out;
}

.score-box {
    transition: background-color 0.5s ease, transform 0.2s ease;
}

/* Animação de Fade In para elementos dinâmicos */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* --- LOADER (SPINNER) --- */
.loader {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #f5c745; /* Gelb Yellow */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    -webkit-animation: spinner 1.0s linear infinite;
    animation: spinner 1.0s linear infinite;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- FORMULÁRIOS --- */
/* Correção para o autofill do Chrome não estragar o design */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Checkbox e Radio Customizados */
.form-radio {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block;
    vertical-align: middle;
    background-origin: border-box;
    user-select: none;
    flex-shrink: 0;
    border-radius: 100%;
    border-width: 2px;
}

.form-radio:checked {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
    border-color: transparent;
    background-color: currentColor;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- DASHBOARD ESPECÍFICO --- */
/* Scrollbar personalizada para tabelas */
.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Estilo para impressão (PDF/Print) */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: white;
    }
}