/* ==========================================================================
   EcoCM'$ CRM — Design System (tokens globais)
   Paleta: preto / branco + âmbar (#f59e0b) para detalhes
   ========================================================================== */
:root {
    /* Marca */
    --primary:        #f59e0b;
    --primary-dark:   #d97706;
    --primary-soft:   rgba(245, 158, 11, 0.12);
    --primary-glow:   rgba(245, 158, 11, 0.35);

    /* Superfícies (tons de preto/cinza) */
    --bg:             #000000;
    --bg-elevated:    #0a0a0a;
    --surface:        #111111;
    --surface-2:      #161616;
    --surface-3:      #1c1c1c;
    --border:         #242424;
    --border-strong:  #333333;

    /* Texto */
    --text:           #ffffff;
    --text-muted:     #a1a1aa;
    --text-faint:     #6b6b73;

    /* Status (listas do Kanban / semântica) */
    --status-novo:        #3b82f6;
    --status-andamento:   #f59e0b;
    --status-prospeccao:  #a855f7;
    --status-aguardando:  #eab308;
    --status-concluido:   #22c55e;
    --status-nao-concluido: #ef4444;
    --danger:             #ef4444;
    --success:            #22c55e;

    /* Layout */
    --sidebar-w:      256px;
    --radius:         16px;
    --radius-sm:      10px;
    --radius-lg:      24px;
    --shadow:         0 10px 30px -12px rgba(0,0,0,.7);
    --shadow-lg:      0 25px 50px -12px rgba(0,0,0,.6);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font); -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* Utilidades comuns ------------------------------------------------------ */
.hidden { display: none !important; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-size: .9rem; font-weight: 600; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #000; box-shadow: 0 4px 14px var(--primary-glow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(239,68,68,.4); }
.btn-danger:hover { background: rgba(239,68,68,.12); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
}

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.input, .select, .textarea {
    width: 100%; padding: .8rem 1rem; background: var(--surface-2);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-size: .95rem; outline: none; transition: all .2s ease;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: var(--surface-3);
}
.textarea { resize: vertical; min-height: 90px; }

.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem;
    border-radius: 999px; font-size: .72rem; font-weight: 600; }

/* Glow decorativo de fundo */
.bg-glow { position: fixed; width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
    border-radius: 50%; filter: blur(120px); z-index: 0; opacity: .12; pointer-events: none; }
.bg-glow.tr { top: -15%; right: -10%; background: var(--primary); }
.bg-glow.bl { bottom: -15%; left: -10%; background: var(--primary-dark); }
