/* ============================================================
   STYLE.CSS — BoxBoxCRM Design System Global
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Cores */
    --bg-base:       #0D0D0F;
    --bg-surface:    #141418;
    --bg-elevated:   #1C1C23;
    --bg-hover:      #22222C;
    --border:        #2A2A38;
    --border-light:  #333344;

    --accent-blue:   #3B82F6;
    --accent-blue-h: #2563EB;
    --accent-orange: #F97316;
    --accent-orange-h:#EA6B0D;

    --text-primary:  #F0F0F5;
    --text-secondary:#9CA3AF;
    --text-muted:    #6B7280;

    --success:       #22C55E;
    --error:         #EF4444;
    --warning:       #F59E0B;

    /* Tipografia */
    --font-heading:  'Outfit', sans-serif;
    --font-body:     'Inter', sans-serif;

    /* Espaçamentos */
    --radius-sm:     6px;
    --radius-md:     10px;
    --radius-lg:     16px;
    --radius-xl:     24px;

    /* Sombras */
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:     0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg:     0 8px 40px rgba(0,0,0,0.6);
    --shadow-blue:   0 0 20px rgba(59,130,246,0.25);

    /* Transições */
    --transition:    all 0.2s cubic-bezier(0.4,0,0.2,1);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* --- TIPOGRAFIA --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p  { line-height: 1.6; color: var(--text-secondary); }

/* --- BOTÕES --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    border: none; border-radius: var(--radius-md);
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}
.btn-primary:hover {
    background: var(--accent-blue-h);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.4);
}
.btn-orange {
    background: var(--accent-orange);
    color: #fff;
    box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}
.btn-orange:hover {
    background: var(--accent-orange-h);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn:active { transform: translateY(0) scale(0.98); }

/* --- INPUTS --- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.form-input, .form-select, .form-textarea {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 10px 14px;
    transition: var(--transition);
    outline: none;
    width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg-elevated); }
.form-textarea { resize: vertical; min-height: 80px; }

/* --- CARDS --- */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}
.card:hover { border-color: var(--border-light); }

/* --- BADGE --- */
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-blue    { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.badge-orange  { background: rgba(249,115,22,0.15); color: var(--accent-orange); }
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- UTILITÁRIOS --- */
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: 16px; }
.gap-8  { gap: 32px; }
.mt-4   { margin-top: 16px; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--text-muted); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- ANIMAÇÕES --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-fade-in { animation: fadeIn 0.4s ease both; }
