/* ============================================================
   SMARTCLINIC - GLOBAL
   Reset + variaveis + tipografia + responsividade
   Edite as variaveis abaixo para mudar o tema todo.
   ============================================================ */

:root {
    /* Cores da marca */
    --brand: #2f5f57;
    --brand-dark: #234a44;
    --brand-darker: #1a3833;
    --brand-light: #e6efed;
    --brand-lighter: #f0f6f5;

    /* Cores de texto */
    --text: #1f2d2b;
    --text-soft: #3a4a48;
    --muted: #6b7a78;

    /* Cores de fundo */
    --bg: #f4f6f6;
    --bg-soft: #eaeff0;
    --card: #ffffff;

    /* Cores de estado */
    --danger: #b03a3a;
    --danger-light: #fdecec;
    --success: #2f7d5b;
    --success-light: #e7f4ee;
    --warning: #a06f1c;
    --warning-light: #fdf3e2;
    --info: #2a5c8a;
    --info-light: #e6f0fa;

    /* Bordas e sombras */
    --border: #cfd8d6;
    --border-soft: #e4ebe9;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.05);
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.10);

    /* Layout */
    --sidebar-width: 240px;
    --sidebar-width-collapsed: 64px;
    --toolbar-height: 60px;
    --content-max: 1400px;

    /* Tipografia */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 15px;
    --font-size-sm: 13px;
    --font-size-lg: 17px;
    --font-size-xl: 22px;
    --font-size-xxl: 28px;

    /* Transicoes */
    --transition: 0.18s ease;
}

/* ============================================================
   RESET
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: var(--font-size-xxl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }

p { margin: 0 0 12px; }

a {
    color: var(--brand);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--brand-dark); }

img { max-width: 100%; height: auto; display: block; }

button { font-family: inherit; font-size: inherit; }

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================================
   UTILITARIOS
   ============================================================ */

.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ============================================================
   RESPONSIVIDADE GLOBAL
   ============================================================ */

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 220px;
        --content-max: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 14px;
        --font-size-xxl: 22px;
        --font-size-xl: 18px;
        --toolbar-height: 56px;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
        --font-size-xxl: 20px;
        --font-size-xl: 17px;
        --radius: 8px;
    }
}
