/* ==========================================================================
   MOBII - DESIGN SYSTEM & BASE STYLES (MODERN FINTECH SAAS)
   ========================================================================== */

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

:root {
  /* ── BRAND PALETTE (Navy & Turquoise) ── */
  --mabii-navy-deep: #0C1838;
  --mabii-navy-main: #162858;
  --mabii-navy-light: #2563EB;
  --mabii-navy-bg: #EFF6FF;
  --mabii-navy-border: #BFDBFE;
  
  --mabii-turquoise-deep: #0891B2;
  --mabii-turquoise-main: #06B6D4;
  --mabii-turquoise-light: #22D3EE;
  --mabii-turquoise-bg: #ECFEFF;
  --mabii-turquoise-border: #A5F3FC;

  /* ── PJ (Pessoa Jurídica) theme ── */
  --pj: #1E3A8A;
  --pj2: #2563EB;
  --pjl: #EFF6FF;
  --pjm: #BFDBFE;
  --pj-accent: #2563EB;

  /* ── PF (Pessoa Física) theme ── */
  --pf: #0E7490;
  --pf2: #0891B2;
  --pfl: #ECFEFF;
  --pfm: #A5F3FC;
  --pf-accent: #06B6D4;

  /* ── NEUTRALS & SAAS LAYOUT PALETTE ── */
  --bg: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* ── STATUS COLORS ── */
  --green: #10B981;
  --green-bg: #D1FAE5;
  --green-text: #047857;
  
  --danger: #EF4444;
  --danger-bg: #FEE2E2;
  --danger-text: #B91C1C;

  --amber: #F59E0B;
  --amber-bg: #FEF3C7;
  --amber-text: #B45309;

  --purple: #8B5CF6;
  --purple-bg: #EDE9FE;

  /* ── MODERN SHADOWS & RADIUS ── */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ERGONOMICS ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Smooth momentum scrolling */
.scroll-x, .filtros-row {
  -webkit-overflow-scrolling: touch;
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn var(--transition-normal) forwards;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

