/*
 * Kaizen SDR · Design System Aurora (2025-11)
 * Camada de apresentação unificada para o painel interno, alinhada à nova identidade visual
 * aplicada na landing page e na tela de login. Todos os tokens foram normalizados para manter
 * compatibilidade com macros existentes e garantir manutenção simples.
 */

:root {
  /* Paleta principal - Nova identidade visual */
  --brand-50: #fce7eb;
  --brand-100: #f9c2d0;
  --brand-200: #f599b0;
  --brand-300: #f17090;
  --brand-400: #e84d6f;
  --brand-500: #cf244b;
  --brand-600: #a11d59;
  --brand-700: #7a1643;
  --brand-800: #530f2d;
  --brand-900: #2c0817;

  --accent-400: #2d5a6b;
  --accent-500: #1c353e;
  --accent-600: #0f1f25;

  /* Superfícies e sombras - Nova paleta */
  --surface-900: #1c353e;
  --surface-950: #0f1f25;
  --surface-glass: rgba(28, 53, 62, 0.65);
  --surface-glass-heavy: rgba(28, 53, 62, 0.82);
  --surface-glow: rgba(207, 36, 75, 0.22);
  --surface-border: rgba(148, 163, 184, 0.18);
  --surface-border-strong: rgba(207, 36, 75, 0.35);

  --text-primary: #e2e8f0;
  --text-secondary: #a0aec0;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  --success-500: #34d399;
  --warning-500: #facc15;
  --error-500: #f87171;
  --info-500: #38bdf8;

  --radius-xs: 0.35rem;
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  --shadow-soft: 0 12px 40px rgba(8, 11, 26, 0.45);
  --shadow-strong: 0 18px 60px rgba(8, 11, 26, 0.58);

  --header-height: 4.5rem;
  --sidebar-width: 19rem;
  --sidebar-width-collapsed: 5.25rem;
  --content-max-width: 1280px;
  --page-padding: 2.25rem;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 360ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Compatibilidade com tokens legados */
  --primary: var(--brand-500);
  --primary-color: var(--brand-500);
  --primary-dark: var(--brand-600);
  --primary-light: var(--brand-400);
  --gray-50: rgba(248, 250, 252, 0.04);
  --gray-100: rgba(226, 232, 240, 0.08);
  --gray-200: rgba(203, 213, 225, 0.14);
  --gray-300: rgba(148, 163, 184, 0.25);
  --gray-400: rgba(148, 163, 184, 0.4);
  --gray-500: rgba(148, 163, 184, 0.62);
  --gray-600: rgba(203, 213, 225, 0.74);
  --gray-700: rgba(226, 232, 240, 0.82);
  --gray-800: rgba(226, 232, 240, 0.9);
  --gray-900: #f8fafc;
  
  --success-color: var(--success-500);
  --warning-color: var(--warning-500);
  --error-color: var(--error-500);
  --info-color: var(--info-500);
}

/* Reset e base tipográfica */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background: var(--surface-950);
}

body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: radial-gradient(circle at top right, rgba(207, 36, 75, 0.35), transparent 55%),
              radial-gradient(circle at bottom left, rgba(28, 53, 62, 0.25), transparent 60%),
              var(--surface-950);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(79, 70, 229, 0.18), rgba(20, 184, 166, 0.05));
  filter: blur(90px);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.85));
  z-index: -1;
}

a {
  color: var(--brand-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-100);
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Layout geral */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  backdrop-filter: saturate(130%);
}

.app-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  background: var(--surface-glass-heavy);
  border-bottom: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(20px) saturate(150%);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.header-brand .logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-brand .logo img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  border-radius: inherit;
}

.header-brand h1 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  display: none;
  border: none;
  background: rgba(207, 36, 75, 0.12);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.sidebar-toggle:hover {
  background: rgba(207, 36, 75, 0.22);
  color: var(--text-primary);
}

.app-main {
  flex: 1;
  display: flex;
  position: relative;
  min-height: calc(100vh - var(--header-height));
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-medium), visibility var(--transition-medium);
  z-index: 90;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.app-sidebar {
  width: var(--sidebar-width);
  background: var(--surface-glass);
  border-right: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
  padding: 1.85rem 1.45rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  backdrop-filter: blur(18px) saturate(140%);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nav-section {
  border-radius: var(--radius-md);
  padding: 0.35rem;
  transition: background var(--transition-fast);
}

.nav-section:hover {
  background: rgba(207, 36, 75, 0.08);
}

.nav-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.nav-section-header:hover {
  color: var(--text-primary);
  background: rgba(207, 36, 75, 0.12);
}

.nav-section-header .icon {
  margin-right: 0.6rem;
  color: var(--brand-400);
}

.section-arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.nav-section.has-active .nav-section-header {
  color: var(--brand-300);
}

.nav-section.has-active .section-arrow {
  color: var(--brand-300);
}

.nav-submenu {
  display: none;
  margin: 0.25rem 0 0.4rem 0;
  border-left: 1px solid rgba(207, 36, 75, 0.2);
  padding-left: 0.95rem;
}

.nav-submenu.open {
  display: block;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-item .icon {
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  color: var(--brand-300);
}

.nav-item:hover {
  color: var(--text-primary);
  transform: translateX(4px);
  background: rgba(207, 36, 75, 0.12);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(207, 36, 75, 0.7), rgba(28, 53, 62, 0.35));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 28px rgba(207, 36, 75, 0.25);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-400), var(--accent-400));
}

.nav-item.sub-item {
  font-size: 0.83rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.35rem;
}

.nav-item.sub-item.active {
  background: linear-gradient(135deg, rgba(207, 36, 75, 0.4), rgba(28, 53, 62, 0.35));
}

.app-content {
  flex: 1;
  min-width: 0;
  padding: var(--page-padding);
  background: rgba(2, 6, 23, 0.4);
}

.content-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.content-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.content-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.content-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Componentes principais */
.card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.62));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(207, 36, 75, 0.38);
}

.card-header {
  padding: 1.5rem 1.75rem 1.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(15, 23, 42, 0.3));
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: 1.65rem 1.75rem;
  color: var(--text-secondary);
}

.card-footer {
  padding: 1.2rem 1.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(148, 163, 184, 0.06);
}

.table-container {
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.58));
}

.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-secondary);
}

.table thead {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(99, 102, 241, 0.05));
}

.table th {
  text-align: left;
  padding: 1rem 1.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.table td {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.table tr:hover {
  background: rgba(207, 36, 75, 0.08);
}

.table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(207, 36, 75, 0.22);
  color: var(--text-primary);
}

.badge-success {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
}

.badge-warning {
  background: rgba(250, 204, 21, 0.18);
  color: #facc15;
}

.badge-error {
  background: rgba(248, 113, 113, 0.18);
  color: #f87171;
}

.badge-info {
  background: rgba(56, 189, 248, 0.18);
  color: #bae6fd;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.18);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 500ms ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(148, 163, 184, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 18px 45px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.24);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(207, 36, 75, 0.6);
  box-shadow: 0 0 0 3px rgba(207, 36, 75, 0.2);
  background: rgba(15, 23, 42, 0.74);
}

.form-error {
  font-size: 0.78rem;
  color: var(--error-500);
}

.alert {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
}

.alert-success {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.12);
  color: #bbf7d0;
}

.alert-warning {
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.12);
  color: #fef08a;
}

.alert-error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.alert-info {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  min-width: 200px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(207, 36, 75, 0.3);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-strong);
  padding: 0.35rem;
  display: none;
  backdrop-filter: blur(16px);
  z-index: 160;
}

.dropdown-menu.dropdown-menu-left {
  left: 0;
  right: auto;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(207, 36, 75, 0.18);
  color: var(--text-primary);
}

.dropdown-header {
  padding: 0.6rem 0.7rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dropdown-divider {
  height: 1px;
  margin: 0.35rem 0;
  background: rgba(148, 163, 184, 0.22);
}

.loading-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.25);
  border-top-color: var(--brand-400);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Grid utilitários */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Utilitários de tipografia */
.text-xs { font-size: 0.72rem; }
.text-sm { font-size: 0.82rem; }
.text-base { font-size: 0.95rem; }
.text-lg { font-size: 1.05rem; }
.text-xl { font-size: 1.35rem; }
.text-2xl { font-size: 1.65rem; }
.text-3xl { font-size: 2rem; }

.text-gray-500 { color: var(--text-muted); }
.text-gray-600 { color: var(--text-secondary); }
.text-gray-700 { color: var(--text-primary); }
.text-gray-800 { color: var(--text-primary); }
.text-gray-900 { color: var(--text-primary); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.rounded { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-md); }
.rounded-xl { border-radius: var(--radius-lg); }

.shadow { box-shadow: var(--shadow-soft); }
.shadow-md { box-shadow: var(--shadow-soft); }
.shadow-lg { box-shadow: var(--shadow-strong); }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-sm { font-size: 0.85rem; }
.icon-lg { font-size: 1.15rem; }

/* Estados vazios */
.empty-state {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-secondary);
  text-align: center;
}

.empty-state .icon {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  color: var(--brand-400);
}

/* Mobile */
@media (max-width: 1024px) {
  .sidebar-toggle {
    display: inline-flex;
  }

  .app-sidebar {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    z-index: 120;
    transition: left var(--transition-medium);
  }
  
  .app-sidebar.open {
    left: 0;
  }
  
  .app-main {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 0 1.15rem;
  }
  
  .header-brand h1 {
    display: none;
  }

  .app-content {
    padding: 1.5rem;
}

  .content-container {
    gap: 1.35rem;
  }
  
  .btn {
    width: 100%;
  }
  }
  
@media (max-width: 640px) {
  .card-header,
  .card-body,
  .card-footer {
    padding: 1.35rem;
  }
  
  .table th,
  .table td {
    padding: 0.85rem 1rem;
  }
}

/* Scrollbar elegante */
.app-sidebar::-webkit-scrollbar,
.app-content::-webkit-scrollbar {
  width: 0.55rem;
  }
  
.app-sidebar::-webkit-scrollbar-track,
.app-content::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  }

.app-sidebar::-webkit-scrollbar-thumb,
.app-content::-webkit-scrollbar-thumb {
  background: rgba(207, 36, 75, 0.35);
  border-radius: 999px;
  }

.app-sidebar::-webkit-scrollbar-thumb:hover,
.app-content::-webkit-scrollbar-thumb:hover {
  background: rgba(207, 36, 75, 0.55);
}

/* ========================================
   AURORA LAYOUT HELPERS (2025-11)
   ======================================== */
.aurora-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  }

.aurora-header {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, rgba(207, 36, 75, 0.32), rgba(20, 184, 166, 0.12));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.aurora-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.25), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.aurora-header-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-size: 1.35rem;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.aurora-header-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.aurora-header-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.aurora-header-subtitle {
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.95rem;
  max-width: 52ch;
}

.aurora-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.aurora-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.6));
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.aurora-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.aurora-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.aurora-grid-two {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .aurora-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.aurora-alert {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.55);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.aurora-alert-info {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(30, 64, 175, 0.22);
}

.aurora-alert-warning {
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(180, 83, 9, 0.18);
}

.aurora-alert strong {
  font-weight: 600;
  color: var(--text-primary);
}

.aurora-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(207, 36, 75, 0.18);
  color: var(--text-primary);
}

.aurora-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.65);
}

.aurora-toolbar .toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.divider-horizontal {
  width: 100%;
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
} 

.aurora-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.aurora-metric {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.aurora-metric .metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.aurora-metric .metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.6);
}

.aurora-card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .aurora-card-grid.sm-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (min-width: 1024px) {
  .aurora-card-grid.lg-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .aurora-card-grid.lg-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.aurora-item-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(170deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.68));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.aurora-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.aurora-item-card header,
.aurora-item-card footer {
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.aurora-item-card footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  border-bottom: none;
  margin-top: auto;
}

.aurora-item-card .card-body {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aurora-badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(207, 36, 75, 0.22);
  color: var(--text-primary);
}

.aurora-badge-soft.success {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}

.aurora-badge-soft.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fef3c7;
}

.aurora-badge-soft.danger {
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
}

.aurora-badge-soft.info {
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
}

.aurora-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.aurora-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 3px rgba(207, 36, 75, 0.25);
}

.aurora-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.65);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 0.45rem 0.75rem;
}

.aurora-input-group i {
  color: rgba(226, 232, 240, 0.6);
}

.aurora-input-group input {
  border: none;
  background: transparent;
  width: 100%;
  padding: 0.1rem 0.25rem;
  color: var(--text-primary);
}

.aurora-input-group input:focus {
  outline: none;
}

.aurora-dropdown {
  position: relative;
}

.aurora-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  padding: 0.25rem;
  min-width: 12rem;
  z-index: 120;
  display: none;
}

.aurora-dropdown-menu.show {
  display: block;
}

.aurora-dropdown-menu button,
.aurora-dropdown-menu a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  background: transparent;
  border: none;
  text-align: left;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.aurora-dropdown-menu button:hover,
.aurora-dropdown-menu a:hover {
  background: rgba(207, 36, 75, 0.22);
  color: var(--text-primary);
}

.aurora-empty-state {
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.58);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.aurora-empty-state .emoji {
  font-size: 3rem;
} 

.aurora-dropdown-menu a:hover {
  background: rgba(207, 36, 75, 0.22);
  color: var(--text-primary);
}

.aurora-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(207, 36, 75, 0.9), rgba(14, 165, 233, 0.75));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.28);
}

.aurora-dropdown-trigger {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.65);
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.aurora-dropdown-trigger:hover {
  background: rgba(207, 36, 75, 0.22);
  color: var(--text-primary);
} 

.aurora-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(12px) saturate(180%);
  padding: 1.5rem;
}

.aurora-modal-backdrop.show {
  display: flex;
}

.aurora-modal {
  width: 100%;
  max-width: 24rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Melhorar contraste dos inputs dentro das modais */
.aurora-modal input,
.aurora-modal textarea,
.aurora-modal select {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.9);
}

.aurora-modal input:focus,
.aurora-modal textarea:focus,
.aurora-modal select:focus {
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary, #cf244b);
  box-shadow: 0 0 0 3px rgba(207, 36, 75, 0.1);
}

.aurora-modal-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.aurora-modal-header .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
}

.aurora-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
} 

.hidden {
  display: none !important;
} 

.aurora-dropzone {
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.65);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.aurora-dropzone:hover,
.aurora-dropzone:focus-within {
  border-color: rgba(207, 36, 75, 0.6);
  background: rgba(15, 23, 42, 0.78);
} 
