/* garant_smart/static/css/main.css */
:root {
    /* 1. Paleta de Cores */
    /* Primária: Transmite confiança e profissionalismo */
    --primary: #2563EB; /* Azul Vibrante */
    --primary-hover: #1D4ED8; /* Azul Escuro */
    
    /* Semânticas: Para feedback claro */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Tipografia */
    --font-family: 'Inter', sans-serif;

    /* Bordas e Sombras */
    --border-radius: 0.5rem;
    --box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.07), 0 1px 2px -1px rgb(0 0 0 / 0.04);
}

/* 2. Tema Claro (Público) */
html:not([data-theme='dark']) {
    --bg-color: #F9FAFB;
    --surface-color: #FFFFFF;
    --border-color: #E5E7EB;
    --text-primary: #111827;
    --text-secondary: #6B7280;
}

/* 3. Tema Escuro (Admin) */
html[data-theme='dark'] {
    --primary: #38BDF8;
    --primary-hover: #0EA5E9;
    --bg-color: #111827;
    --surface-color: #1F2937;
    --border-color: #374151;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
}

/* 4. Reset e Estilos Globais */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-weight: 700; margin-top: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.text-secondary { color: var(--text-secondary); }

/* 5. Componentes Globais (Botões, Notificações) */
.button, button, input[type="submit"] {
    display: inline-block; padding: 0.75rem 1.5rem; font-size: 1rem;
    font-weight: 600; text-align: center; text-decoration: none;
    border-radius: var(--border-radius); border: 1px solid transparent;
    cursor: pointer; transition: background-color 0.2s ease;
}
.button.primary, button.primary, input[type="submit"] {
    background-color: var(--primary); color: #FFF;
}
.button.primary:hover, button.primary:hover, input[type="submit"]:hover {
    background-color: var(--primary-hover);
}

/* Notificações Flash */
.notification {
    padding: 1rem; margin-bottom: 1rem;
    border-radius: var(--border-radius); border: 1px solid transparent;
    font-weight: 500;
}
.notification.success { background-color: #D1FAE5; border-color: #6EE7B7; color: #065F46; }
.notification.danger  { background-color: #FEE2E2; border-color: #FCA5A5; color: #991B1B; }
.notification.warning { background-color: #FEF3C7; border-color: #FCD34D; color: #92400E; }

[data-theme='dark'] .notification.success { background-color: #064E3B; color: #A7F3D0; }
[data-theme='dark'] .notification.danger  { background-color: #991B1B; color: #FECACA; }
[data-theme='dark'] .notification.warning { background-color: #92400E; color: #FDE68A; }