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

:root {
  /* =====================
     CORES
     ===================== */
  --color-background-primary: #f2f4f6;
  --color-navy:    #202844;
  --color-silver:  #979ba8;
  --color-gold:    #cab497;
  --color-danger:  #e11d48;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-info:    #3b82f6;
  --color-text-muted: #c7cad6;

  --aura-bg: var(--color-background-primary);
  --aura-card: rgba(255, 255, 255, 0.75);
  --aura-border: rgba(255, 255, 255, 0.6);
  --aura-stroke: rgba(226, 232, 240, 0.4);
  --aura-shadow-soft: 0 12px 40px -12px rgba(32, 40, 68, 0.08);
  --aura-shadow-hover: 0 20px 48px -10px rgba(32, 40, 68, 0.12);

  /* =====================
     TIPOGRAFIA
     ===================== */
  --font-primary:  'Plus Jakarta Sans', sans-serif;
  --font-display:  'Outfit', sans-serif;

  --text-display:   2rem;      /* 32px */
  --text-h1:        1.5rem;    /* 24px */
  --text-h2:        1.125rem;  /* 18px */
  --text-h3:        0.9375rem; /* 15px */
  --text-body:      0.875rem;  /* 14px */
  --text-small:     0.8125rem; /* 13px */
  --text-label:     0.75rem;   /* 12px */
  --text-micro:     0.6875rem; /* 11px */

  --tracking-headings: -0.025em;
  --tracking-body:     -0.011em;
  --tracking-labels:   0.05em;

  /* =====================
     ESPAÇAMENTO
     ===================== */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;

  /* =====================
     COMPONENTES
     ===================== */
  --radius-card:   20px;
  --radius-input:  12px;
  --radius-badge:  6px;
  --radius-button: 10px;

  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: var(--aura-bg);
  color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, 0.5);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* 
  ---------------------------
  PREMIUM DESIGN SYSTEM (V2)
  ---------------------------
*/

/* 1. Card Premium (Refined Minimalist) */
.card-premium,
.aura-card {
  background: var(--aura-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--aura-border);
  box-shadow: var(--aura-shadow-soft);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-premium:hover,
.aura-card:hover {
  box-shadow: var(--aura-shadow-hover);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.8);
}

.card-premium:hover::before {
  opacity: 1;
}

/* 2. Apple-style Glass Panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

/* 3. Input Minimal */
.input-minimal {
  background: rgba(241, 245, 249, 0.5);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 16px;
  transition: all 0.2s ease;
  width: 100%;
  color: #0f172a;
  font-size: 15px;
}

.input-minimal:focus {
  background: #ffffff;
  border-color: #007AFF;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
  outline: none;
}

/* 4. Surface Alt (Subtle Background for Containers) */
.bg-surface-alt {
  background: rgba(241, 245, 249, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.5);
}

/* 5. Sophisticated Typography */
.aura-heading {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.aura-description {
  color: #64748b;
  font-weight: 400;
  line-height: 1.5;
}

/* 6. Refined Buttons */
.aura-button {
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
}

.active-scale {
  transition: transform 0.1s ease;
}

.active-scale:active {
  transform: scale(0.96);
}

/* Animations - System Transitions */
@keyframes slideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slide-up {
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Segmented Control */
.segmented-control {
  display: flex;
  padding: 4px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
}

.segmented-item {
  position: relative;
  flex: 1;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  z-index: 1;
}

.segmented-item.active {
  color: #ffffff;
  background: #202844;
  box-shadow: 0 4px 12px rgba(32, 40, 68, 0.2);
}

/* Staggered Animations */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

.animate-entrance {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Custom Progress Bar for Premium Feel */
.progress-bar-glow {
  box-shadow: 0 0 8px currentColor;
  opacity: 0.8;
}

/* Glassy Input */
.glass-input {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.6);
  border-color: #202844;
  box-shadow: 0 0 0 4px rgba(32, 40, 68, 0.05);
}

/* =====================
   HIERARQUIA TIPOGRÁFICA
   ===================== */
.t-display {
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: var(--tracking-headings);
  color: var(--color-navy);
}
.t-h1 {
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: var(--tracking-headings);
  color: var(--color-navy);
}
.t-h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: var(--tracking-headings);
  color: var(--color-navy);
}
.t-h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--color-navy);
}
.t-body {
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--color-navy);
}
.t-small {
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--color-silver);
}
.t-label {
  font-size: var(--text-label);
  font-weight: 500;
  color: var(--color-silver);
  letter-spacing: var(--tracking-labels);
}
.t-micro {
  font-size: var(--text-micro);
  font-weight: 500;
  color: var(--color-silver);
  letter-spacing: var(--tracking-labels);
}

/* =====================
   STATUS COLORS
   ===================== */
.text-danger   { color: var(--color-danger); }
.text-success  { color: var(--color-success); }
.text-warning  { color: var(--color-warning); }
.text-info     { color: var(--color-info); }

.bg-danger-soft  { background: rgba(225, 29, 72, 0.08); }
.bg-success-soft { background: rgba(16, 185, 129, 0.08); }
.bg-warning-soft { background: rgba(245, 158, 11, 0.08); }
.bg-info-soft    { background: rgba(59, 130, 246, 0.08); }