/* style.css - Sistema de Design Profissional */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Identidade Visual (Teal) */
    --primary: #009688;
    --primary-dark: #00796B;
    --primary-light: #B2DFDB;
    --primary-fade: rgba(0, 150, 136, 0.08);

    /* Cores de Superfície e Texto */
    --bg-body: #f1f5f9;       /* Slate-100 para fundo geral */
    --bg-card: #ffffff;
    --text-main: #0f172a;     /* Slate-900 */
    --text-muted: #64748b;    /* Slate-500 */
    --border-color: #e2e8f0;  /* Slate-200 */
    
    /* Sidebar */
    --sidebar-bg: #ffffff;
    --sidebar-text: #475569;
    --sidebar-active-bg: #009688;
    --sidebar-active-text: #ffffff;
}

/* Modo Escuro */
html.dark {
    --bg-body: #0f172a;       /* Slate-900 */
    --bg-card: #1e293b;       /* Slate-800 */
    --text-main: #f8fafc;     /* Slate-50 */
    --text-muted: #94a3b8;    /* Slate-400 */
    --border-color: #334155;  /* Slate-700 */
    
    --sidebar-bg: #1e293b;
    --sidebar-text: #cbd5e1;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* --- Componentes Profissionais --- */

/* Cards com elevação suave */
.card-dashboard {
    background-color: var(--bg-card);
    border-radius: 1rem; /* 16px */
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-dashboard:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
}

/* Tabelas Modernas */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.table-modern th {
    background-color: var(--bg-body);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.table-modern td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.table-modern tr:last-child td {
    border-bottom: none;
}
.table-modern tbody tr:hover {
    background-color: var(--primary-fade);
}

/* Scrollbar Elegante */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
html.dark ::-webkit-scrollbar-thumb { background: #475569; }

/* Utilitários de Animação */
.fade-in-up { animation: fadeInUp 0.4s ease-out forwards; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}