/* ═══════════════════════════════════════════════════════════════════════════
   LINEAR DESIGN SYSTEM — EXCLUSIVO PARA O PAINEL ADMINISTRATIVO NEUROSPHERE
   Baseado estritamente em: https://designmd.me/discover/linear/raw
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Primary Colors */
  --ln-bg-primary:        #08090A;
  --ln-bg-surface:        #000000;
  --ln-text-primary:      #F7F8F8;
  --ln-text-emphasis:     #FFFFFF;

  /* Accent Colors */
  --ln-accent-pink:       #F91880;
  --ln-accent-green:      #00BA7C;

  /* Interactive */
  --ln-interactive:       #5E6AD2;
  --ln-interactive-hover: rgba(255, 255, 255, 0.05);
  --ln-interactive-border:rgba(255, 255, 255, 0.08);

  /* Neutral Scale */
  --ln-neutral-100:       #F7F8F8;
  --ln-neutral-200:       #E5E5E6;
  --ln-neutral-300:       #D0D6E0;
  --ln-neutral-400:       #8A8F98;
  --ln-neutral-500:       #62666D;
  --ln-neutral-600:       #3E3E44;
  --ln-neutral-700:       #18191A;
  --ln-neutral-800:       #0F1011;
  --ln-neutral-900:       #000000;

  /* Surface & Borders */
  --ln-overlay-light:     rgba(255, 255, 255, 0.02);
  --ln-overlay-medium:    rgba(255, 255, 255, 0.03);
  --ln-overlay-strong:    rgba(255, 255, 255, 0.05);
  --ln-border-light:      rgba(255, 255, 255, 0.04);
  --ln-border-standard:   rgba(255, 255, 255, 0.05);

  /* Shadows */
  --ln-shadow-dark:       rgba(0, 0, 0, 0.1) 0px 4px 4px 0px;
  --ln-shadow-sticky:     rgba(0, 0, 0, 0.4) 0px 1px 0px 0px;
  --ln-shadow-modal:      rgba(0, 0, 0, 0.6) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 4px 4px 0px;

  /* Typography */
  --ln-font-sans:         'Inter Variable', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ln-font-mono:         "Berkeley Mono", "JetBrains Mono", "Monaco", "Courier New", monospace;
}

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

html, body {
  background-color: var(--ln-bg-primary);
  color: var(--ln-text-primary);
  font-family: var(--ln-font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── TYPOGRAPHY HIERARCHY (LINEAR SPEC) ─── */
.ln-h1 {
  font-family: var(--ln-font-sans);
  font-size: 40px;
  font-weight: 510;
  line-height: 44px;
  letter-spacing: 0px;
  color: var(--ln-text-primary);
}

.ln-h2 {
  font-family: var(--ln-font-sans);
  font-size: 24px;
  font-weight: 590;
  line-height: 31.92px;
  letter-spacing: 0px;
  color: var(--ln-text-primary);
}

.ln-h3 {
  font-family: var(--ln-font-sans);
  font-size: 20px;
  font-weight: 590;
  line-height: 26.6px;
  color: var(--ln-text-primary);
}

.ln-h4 {
  font-family: var(--ln-font-sans);
  font-size: 16px;
  font-weight: 590;
  line-height: 24px;
  color: var(--ln-text-primary);
}

.ln-h5 {
  font-family: var(--ln-font-sans);
  font-size: 15px;
  font-weight: 510;
  line-height: 24px;
  color: var(--ln-text-primary);
}

.ln-h6 {
  font-family: var(--ln-font-sans);
  font-size: 13px;
  font-weight: 510;
  line-height: 19.5px;
  color: var(--ln-neutral-400);
}

.ln-caption {
  font-family: var(--ln-font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  color: var(--ln-neutral-500);
}

.ln-code {
  font-family: var(--ln-font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: var(--ln-neutral-300);
}

/* ─── HEADER NAVIGATION (LINEAR SPEC) ─── */
.ln-header {
  position: sticky;
  top: 0;
  z-index: 995;
  height: 72px;
  background: rgba(8, 9, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ln-border-standard);
  box-shadow: var(--ln-shadow-sticky);
}

.ln-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.ln-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 510;
  line-height: 21px;
  color: var(--ln-neutral-400);
  text-decoration: none;
  opacity: 0.8;
  transition: color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.ln-nav-item:hover {
  color: var(--ln-text-primary);
  background: var(--ln-interactive-hover);
  opacity: 1;
}

.ln-nav-item.active {
  color: var(--ln-text-emphasis);
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
}

/* ─── BUTTONS (LINEAR SPEC) ─── */
.ln-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #F7F8F8;
  font-family: var(--ln-font-sans);
  font-size: 13px;
  font-weight: 510;
  padding: 0 14px;
  height: 40px;
  border-radius: 9999px;
  border: 0px none;
  box-shadow: rgba(255, 255, 255, 0.03) 0px 0px 0px 1px inset,
              rgba(255, 255, 255, 0.04) 0px 1px 0px 0px inset,
              rgba(0, 0, 0, 0.6) 0px 0px 0px 1px,
              rgba(0, 0, 0, 0.1) 0px 4px 4px 0px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.ln-btn-primary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ln-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #E5E5E6;
  color: #08090A;
  font-family: var(--ln-font-sans);
  font-size: 13px;
  font-weight: 510;
  padding: 0 12px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid #E5E5E6;
  box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 2px 0px,
              rgba(0, 0, 0, 0.07) 0px 1px 1px 0px,
              rgba(0, 0, 0, 0.08) 0px 0px 1px 0px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.ln-btn-secondary:hover {
  opacity: 0.9;
}

.ln-btn-interactive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #5E6AD2;
  color: #FFFFFF;
  font-family: var(--ln-font-sans);
  font-size: 13px;
  font-weight: 510;
  padding: 0 16px;
  height: 32px;
  border-radius: 9999px;
  border: 0px none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.ln-btn-interactive:hover {
  opacity: 0.85;
}

.ln-btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #F91880;
  color: #FFFFFF;
  font-family: var(--ln-font-sans);
  font-size: 13px;
  font-weight: 510;
  padding: 0 14px;
  height: 32px;
  border-radius: 9999px;
  border: 0px none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.ln-btn-accent:hover {
  opacity: 0.88;
}

.ln-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: #8A8F98;
  font-family: var(--ln-font-sans);
  font-size: 13px;
  font-weight: 400;
  padding: 0 12px;
  height: 32px;
  border-radius: 9999px;
  border: 0px none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.ln-btn-ghost:hover {
  color: #F7F8F8;
  background: rgba(255, 255, 255, 0.05);
}

/* ─── DARK CARDS & CONTAINERS (LINEAR SPEC) ─── */
.ln-card {
  background: #0F1011;
  color: #F7F8F8;
  padding: 24px 24px 28px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--ln-shadow-dark);
  transition: border-color 0.15s ease;
}

.ln-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.ln-card-compact {
  background: #0F1011;
  color: #F7F8F8;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─── INPUTS & FORMS (LINEAR SPEC) ─── */
.ln-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  color: #D0D6E0;
  font-family: var(--ln-font-sans);
  font-size: 13.3333px;
  font-weight: 400;
  padding: 10px 14px;
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px 1px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ln-input::placeholder {
  color: rgba(138, 143, 152, 0.6);
}

.ln-input:focus {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
}

select.ln-input option {
  background: #0F1011;
  color: #F7F8F8;
}

.ln-label {
  display: block;
  font-size: 13px;
  font-weight: 510;
  line-height: 19.5px;
  color: #8A8F98;
  margin-bottom: 8px;
}

/* ─── BADGES & STATUS PILLS (LINEAR SPEC) ─── */
.ln-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 510;
  line-height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #D0D6E0;
}

.ln-badge-green {
  background: rgba(0, 186, 124, 0.12);
  border-color: rgba(0, 186, 124, 0.28);
  color: #00BA7C;
}

.ln-badge-pink {
  background: rgba(249, 24, 128, 0.12);
  border-color: rgba(249, 24, 128, 0.28);
  color: #F91880;
}

.ln-badge-indigo {
  background: rgba(94, 106, 210, 0.14);
  border-color: rgba(94, 106, 210, 0.32);
  color: #8E98F5;
}

.ln-badge-neutral {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #8A8F98;
}

/* ─── TABLES (LINEAR SPEC) ─── */
.ln-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ln-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ln-table th {
  font-size: 12px;
  font-weight: 510;
  color: #62666D;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ln-table td {
  font-size: 14px;
  color: #D0D6E0;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.ln-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 768px) {
  .ln-container {
    padding: 0 16px;
  }
  .ln-h1 {
    font-size: 28px;
    line-height: 34px;
  }
}
