:root {
  --orange: #e9561e;
  --beige: #ecd9ba;
  --dark-bg: #1f2e38;
  --input-bg: #16222b;
  --input-border: #2f3e48;
}

/* main.css */
body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #050505;
  color: #e2e8f0;
}

/* Dark native select dropdowns globally */
select option,
select optgroup {
  background-color: #111111;
  color: #ecd9ba;
}

select option:checked {
  background-color: #1e1e1e;
}

/* Base heading font */
h1,
h2,
h3,
h4,
.font-display,
.text-metric,
.text-metric-lg,
.text-metric-xl,
.kpi-value,
.kpi-value-new {
  font-family: "Outfit", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image:
    radial-gradient(
      circle at 50% 0%,
      rgba(30, 41, 59, 1) 0%,
      rgba(5, 5, 5, 1) 60%
    ),
    url("../assets/nexofondo.jpg");
  background-size:
    100% 100%,
    cover;
  background-position:
    top center,
    center;
  background-blend-mode: normal, overlay;
  opacity: 0.95;
}

/* Subtle Noise Grain Texture */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* View Transitions native cross-fade (if supported by meta tag) */
::view-transition-old(root) {
  animation: 300ms cubic-bezier(0.4, 0, 0.2, 1) both fade-out;
}

::view-transition-new(root) {
  animation: 400ms cubic-bezier(0.4, 0, 0.2, 1) both fade-in;
}

@keyframes fade-out {
  to {
    opacity: 0;
    transform: translateY(-4px) scale(0.99);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

::view-transition-old(main-background),
::view-transition-new(main-background) {
  animation: none;
  mix-blend-mode: normal;
}

/* ========== HEADER UNIFICADO ========== */
.header-nexo {
  background: #121212;
  border: 1px solid var(--input-border);
  border-radius: 0.75rem;
  padding: 1.25rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.header-nexo .header-icon {
  padding: 0.75rem;
  border-radius: 0.75rem;
}

.header-nexo .header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--beige);
  letter-spacing: -0.01em;
}

.header-nexo .header-subtitle {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
}

.header-nexo .header-actions {
  display: flex;
  gap: 0.75rem;
}

/* Modal Base */
.modal-bg {
  background-color: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  overflow: hidden;
}

/* Modals Header */
.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(25, 25, 25, 0.5);
}

.modal-header h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.25rem;
}

.modal-body {
  padding: 1.75rem;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(25, 25, 25, 0.3);
}

/* Glassmorphism Effect - DEPRECADO, mantener para compatibilidad */
.glass {
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Card minimalista con fondo sólido y profundidad */
.glass-card {
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 4px 24px -4px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px -4px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Buttons - Diseño sólido, minimalista y glass sutil */
.btn {
  padding: 0.75rem 1.75rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary Button - Naranja con relieve sutil */
.btn-primary {
  background: linear-gradient(180deg, var(--orange) 0%, #d64a13 100%);
  color: #fff;
  border: 1px solid #d64a13;
  box-shadow:
    0 2px 0px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(233, 86, 30, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ff6b35 0%, var(--orange) 100%);
  box-shadow:
    0 2px 0px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    0 6px 16px rgba(233, 86, 30, 0.35);
  transform: translateY(-1px);
}

/* Secondary Button - Fondo oscuro glass */
.btn-secondary {
  background-color: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background-color: rgba(50, 50, 50, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Danger Button - Rojo sólido refinado */
.btn-danger {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  border: 1px solid #b91c1c;
  color: #fff;
  box-shadow:
    0 2px 0px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-danger:hover {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
  box-shadow:
    0 2px 0px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    0 4px 16px rgba(239, 68, 68, 0.3);
}

/* Inputs - Minimalistas con mejor contraste */
.input-modern {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: #1a1a1a;
  /* Fondo más claro que antes */
  border: 1px solid #3a3a3a;
  /* Borde más visible */
  color: var(--beige);
  transition: all 0.2s ease;
  outline: none;
}

.input-modern:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(233, 86, 30, 0.15);
  /* Ring más sutil */
  background-color: #1f1f1f;
}

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

::-webkit-scrollbar-track {
  background: #0f0f0f;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

/* ========== SISTEMA TIPOGRÁFICO ========== */

/* Display (pantallas grandes, héroes) */
.text-display {
  font-size: 3rem;
  /* 48px */
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Headings */
.text-h1 {
  font-size: 2.25rem;
  /* 36px */
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-h2 {
  font-size: 1.875rem;
  /* 30px */
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-h3 {
  font-size: 1.5rem;
  /* 24px */
  line-height: 1.4;
  font-weight: 700;
}

.text-h4 {
  font-size: 1.25rem;
  /* 20px */
  line-height: 1.5;
  font-weight: 600;
}

/* Body */
.text-body-lg {
  font-size: 1.125rem;
  /* 18px */
  line-height: 1.6;
}

.text-body {
  font-size: 1rem;
  /* 16px */
  line-height: 1.6;
}

.text-body-sm {
  font-size: 0.875rem;
  /* 14px */
  line-height: 1.5;
}

/* Labels y captions */
.text-label {
  font-size: 0.75rem;
  /* 12px */
  line-height: 1.4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-caption {
  font-size: 0.75rem;
  /* 12px */
  line-height: 1.4;
  color: #9ca3af;
}

/* KPIs y métricas */
.text-metric-xl {
  font-size: 3.75rem;
  /* 60px */
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  /* Números monoespaciados */
}

.text-metric-lg {
  font-size: 2.25rem;
  /* 36px */
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.text-metric {
  font-size: 1.875rem;
  /* 30px */
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ========== BOTONES SEMÁNTICOS (OVERRIDES) ========== */

.btn-outline-danger {
  background-color: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  box-shadow: none;
  font-family: inherit;
}

.btn-outline-danger:hover {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
  color: #fff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

/* ========== ANIMACIONES ========== */

/* Fade in/out */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

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

.animate-fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

/* Slide down (para alertas) */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

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

.animate-slide-down {
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scale in (para modales/tooltips) */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  /* Using tighter, smoother curve for premium feel */
  animation: scaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal specific animation (improving bounce effect) */
.modal-content.scale-100 {
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease !important;
}

/* Staggered list row animation */
@keyframes fadeInUpRow {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.animate-fade-in-up {
  animation: fadeInUpRow 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Skeleton loader (para estados de carga) */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Shimmer (alternativa moderna a pulse) */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 4px;
}

/* ========== FLATPICKR PERSONALIZADO ========== */

.flatpickr-calendar {
  background: #121212 !important;
  border: 1px solid var(--input-border) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6) !important;
  border-radius: 0.75rem !important;
}

.flatpickr-months {
  background: #1a1a1a !important;
  border-radius: 0.75rem 0.75rem 0 0 !important;
}

.flatpickr-current-month {
  color: var(--beige) !important;
}

.flatpickr-weekdays {
  background: #1a1a1a !important;
}

.flatpickr-weekday {
  color: var(--beige) !important;
  font-weight: 600 !important;
}

.flatpickr-day {
  color: #9ca3af !important;
  border-radius: 0.375rem !important;
}

.flatpickr-day:hover:not(.flatpickr-disabled) {
  background: rgba(233, 86, 30, 0.1) !important;
  border-color: var(--orange) !important;
  color: var(--beige) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: black !important;
  font-weight: 700 !important;
}

.flatpickr-day.today {
  border-color: var(--orange) !important;
  background: rgba(233, 86, 30, 0.15) !important;
}

.flatpickr-day.disabled {
  color: #4b5563 !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  fill: var(--beige) !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  fill: var(--orange) !important;
}

/* Input alternativo de Flatpickr */
input.flatpickr-input[readonly] {
  cursor: pointer;
  background-color: #1a1a1a !important;
}

/* ========== NAV CARDS - Estilo Sidebar ========== */
.nav-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.25rem;
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}

.nav-card:hover {
  background: rgba(233, 86, 30, 0.08);
  border-color: rgba(233, 86, 30, 0.3);
}

.nav-card:active {
  transform: scale(0.98);
}

.nav-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(233, 86, 30, 0.1);
  border-radius: 0.625rem;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.nav-card-icon svg {
  color: var(--orange);
  transition: color 0.15s ease;
  width: 22px;
  height: 22px;
}

.nav-card:hover .nav-card-icon {
  background: rgba(233, 86, 30, 0.15);
}

.nav-card-content {
  flex: 1;
  min-width: 0;
}

.nav-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--beige);
  margin: 0;
  line-height: 1.3;
}

.nav-card-desc {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  margin-top: 0.25rem;
}

.nav-card:hover .nav-card-title {
  color: #fff;
}

.nav-card:hover .nav-card-desc {
  color: #9ca3af;
}

.nav-card-arrow {
  width: 18px;
  height: 18px;
  color: #4b5563;
  flex-shrink: 0;
  transition: all 0.15s ease;
  opacity: 0;
}

.nav-card:hover .nav-card-arrow {
  opacity: 1;
  color: var(--orange);
  transform: translateX(2px);
}

/* ========== QUICK ACTION BUTTONS ========== */
.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 1.25rem 1.5rem;
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 0.625rem;
  color: #9ca3af;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.quick-action-btn:hover {
  background: rgba(233, 86, 30, 0.08);
  border-color: rgba(233, 86, 30, 0.3);
  color: var(--beige);
}

.quick-action-btn:active {
  transform: scale(0.98);
}

.quick-action-btn.quick-action-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.quick-action-btn.quick-action-primary:hover {
  background: #d14d18;
  border-color: #d14d18;
}

.quick-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.quick-action-icon svg {
  width: 20px;
  height: 20px;
}

.quick-action-btn:not(.quick-action-primary) .quick-action-icon {
  background: rgba(233, 86, 30, 0.1);
}

.quick-action-btn:not(.quick-action-primary) .quick-action-icon svg {
  color: var(--orange);
}

.quick-action-btn:not(.quick-action-primary):hover .quick-action-icon {
  background: rgba(233, 86, 30, 0.15);
}

.quick-action-label {
  font-weight: 600;
}

.quick-action-kbd {
  font-size: 0.6875rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  font-family: monospace;
  margin-left: auto;
}

.quick-action-btn:not(.quick-action-primary) .quick-action-kbd {
  background: rgba(107, 114, 128, 0.2);
  color: #6b7280;
}

.quick-action-btn:not(.quick-action-primary):hover .quick-action-kbd {
  background: rgba(233, 86, 30, 0.15);
  color: var(--orange);
}

/* ========== PAGE HEADER - Estilo Sidebar ========== */
.page-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.page-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(233, 86, 30, 0.1);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.page-header-icon svg {
  color: var(--orange);
}

.page-header-content {
  flex: 1;
}

.page-header-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--beige);
  margin: 0;
  line-height: 1.3;
}

.page-header-subtitle {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  margin-top: 0.125rem;
}

/* ========== CARD CONTAINER ========== */
.card-container {
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* ========== SEARCH INPUT ========== */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 0.875rem;
  width: 18px;
  height: 18px;
  color: #6b7280;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 0.5rem;
  color: var(--beige);
  font-size: 0.9375rem;
  transition: all 0.15s ease;
  outline: none;
}

.search-input::placeholder {
  color: #4b5563;
}

.search-input:focus {
  border-color: var(--orange);
  background: #0f0f0f;
  box-shadow: 0 0 0 3px rgba(233, 86, 30, 0.1);
}

.search-results {
  position: absolute;
  width: 100%;
  margin-top: 0.25rem;
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 20;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

.search-results .search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--beige);
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid #1f1f1f;
}

.search-results .search-item:last-child {
  border-bottom: none;
}

.search-results .search-item:hover {
  background: rgba(233, 86, 30, 0.08);
}

.search-results .search-item:focus {
  background: rgba(233, 86, 30, 0.08);
  outline: none;
}

.search-results .search-item.selected {
  background: rgba(233, 86, 30, 0.12);
}

/* ========== ACTION BUTTONS ========== */
.btn-action-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--orange);
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-primary:hover {
  background: #d14d18;
}

.btn-action-primary:active {
  transform: scale(0.98);
}

.btn-action-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== INFO CARDS ========== */
.info-card {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 0.5rem;
  padding: 1rem;
  color: var(--beige);
  font-size: 0.875rem;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #9ca3af;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== DIVIDER ========== */
.divider {
  height: 1px;
  background: #1f1f1f;
  margin: 1.25rem 0;
}

/* ========== RECENT SECTION ========== */
.recent-section {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 0.5rem;
  padding: 1rem;
}

.recent-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.recent-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  transition: all 0.15s ease;
}

.recent-item:hover {
  border-color: #2a2a2a;
}

.recent-item-name {
  color: var(--beige);
  font-weight: 500;
}

.recent-item-time {
  color: #6b7280;
  font-size: 0.75rem;
}

/* ========== PAGE HEADER ACTIONS ========== */
.page-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* ========== CARD TOOLBAR ========== */
.card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1f1f1f;
}

.card-toolbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--beige);
  margin: 0;
}

/* ========== FILTERS SECTION ========== */
.filters-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  padding: 1rem;
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.filter-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 0.375rem;
  color: var(--beige);
  font-size: 0.8125rem;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
}

.filter-select:focus {
  border-color: var(--orange);
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ========== BUTTON VARIANTS ========== */
.btn-sm {
  padding: 0.5rem 0.875rem !important;
  font-size: 0.8125rem !important;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  background: transparent;
  border: 1px solid #1f1f1f;
  border-radius: 0.5rem;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-outline:hover {
  border-color: #3f3f3f;
  color: var(--beige);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 0.5rem;
  color: #4ade80;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-outline-success:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
}

/* ========== DATA TABLE ========== */
.table-container {
  border: 1px solid #1f1f1f;
  border-radius: 0.5rem;
  overflow: hidden;
}

.data-table {
  width: 100%;
  font-size: 0.8125rem;
  color: var(--beige);
  border-collapse: collapse;
}

.data-table thead {
  background: #111;
  border-bottom: 1px solid #1f1f1f;
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table tbody {
  background: #0a0a0a;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1a1a1a;
}

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

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

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.badge-warning {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

/* Action buttons in table */
.table-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid #1f1f1f;
  border-radius: 0.375rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}

.table-action-btn:hover {
  background: rgba(233, 86, 30, 0.1);
  border-color: rgba(233, 86, 30, 0.3);
  color: var(--orange);
}

.table-action-btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(233, 86, 30, 0.1);
  border-radius: 0.75rem;
  color: var(--orange);
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--beige);
  margin: 0 0 0.25rem 0;
}

.empty-state-desc {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
}

/* ========== FORM COMPONENTS ========== */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--beige);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 0.5rem;
  color: var(--beige);
  font-size: 0.9375rem;
  transition: all 0.15s ease;
  outline: none;
}

.form-input::placeholder {
  color: #4b5563;
}

.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(233, 86, 30, 0.1);
}

.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-error {
  font-size: 0.75rem;
  color: #f87171;
  min-height: 1rem;
}

.form-actions {
  margin-top: 0.5rem;
}

/* ========== CARD SECTION TITLE ========== */
.card-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* ========== KPI CARDS ========== */
.kpi-card {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 0.625rem;
  padding: 1.5rem;
  transition: all 0.15s ease;
}

.kpi-card:hover {
  border-color: rgba(233, 86, 30, 0.3);
}

.kpi-card-warning {
  border-color: rgba(234, 179, 8, 0.3);
  background: linear-gradient(
    135deg,
    rgba(234, 179, 8, 0.05) 0%,
    transparent 60%
  );
}

.kpi-card-warning:hover {
  border-color: rgba(234, 179, 8, 0.5);
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--beige);
  margin: 0;
  line-height: 1.2;
}

.kpi-caption {
  font-size: 0.75rem;
  color: #4b5563;
  margin: 0.5rem 0 0 0;
}

/* ========== STAT CARDS ========== */
.stat-card {
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 0.5rem;
  padding: 1rem;
}

.stat-label {
  font-size: 0.6875rem;
  color: #6b7280;
  margin: 0 0 0.25rem 0;
}

.stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--beige);
  margin: 0;
  line-height: 1.3;
}

.stat-caption {
  font-size: 0.6875rem;
  color: #4b5563;
  margin: 0.125rem 0 0 0;
}

/* ========== CHART CONTAINER ========== */
.chart-container {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 0.5rem;
  padding: 1rem;
}

/* ========== DETAIL PANEL (for expandable rows) ========== */
.detail-panel {
  background: #0a0a0a;
  border-top: 1px solid #1f1f1f;
  padding: 1rem 1.25rem;
}

.detail-panel-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
}

.detail-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 0.375rem;
  padding: 0.75rem;
}

.detail-item-type {
  font-size: 0.625rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.detail-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--beige);
  margin: 0.125rem 0 0 0;
}

.detail-item-qty {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

.detail-item-label {
  font-size: 0.6875rem;
  color: #6b7280;
  margin: 0;
}

.detail-item-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--beige);
  margin: 0.125rem 0 0 0;
}

/* ========== DANGER BUTTON VARIANTS ========== */
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: #ef4444;
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-danger:active {
  transform: scale(0.98);
}

.btn-outline-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  color: #f87171;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
}

/* ========== PAGE HEADER ICON VARIANTS ========== */
.page-header-icon-danger {
  background: rgba(239, 68, 68, 0.1);
}

.page-header-icon-danger svg {
  color: #f87171;
}

/* ========== SKELETON LOADING ========== */
.skeleton {
  background: linear-gradient(90deg, #1f1f1f 25%, #2a2a2a 50%, #1f1f1f 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 0.25rem;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal-content {
  position: relative;
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 0.75rem;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #1f1f1f;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--beige);
  margin: 0;
}

.modal-subtitle {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid #1f1f1f;
  border-radius: 0.375rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(90vh - 80px);
}

/* ========== INFO CARD ========== */
.info-card {
  background: rgba(107, 114, 128, 0.1);
  border: 1px solid rgba(107, 114, 128, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
}

.info-card-blue {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 0.5rem;
}

.info-card-list {
  list-style: disc;
  list-style-position: inside;
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ========== FORM HINT ========== */
.form-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.375rem;
}

/* ========== FILE UPLOAD ========== */
.file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: #111;
  border: 2px dashed #1f1f1f;
  border-radius: 0.5rem;
  color: #9ca3af;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.file-upload-btn:hover {
  border-color: var(--orange);
  background: #1a1a1a;
  color: var(--beige);
}

.file-preview {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 0.375rem;
  padding: 0.75rem;
}

.file-preview-label {
  font-size: 0.6875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem 0;
}

.file-preview-name {
  font-size: 0.875rem;
  font-family: monospace;
  color: var(--orange);
  margin: 0;
}

/* ========== CARD HIGHLIGHT ========== */
.card-highlight {
  border-color: rgba(233, 86, 30, 0.3);
  background: linear-gradient(
    135deg,
    rgba(233, 86, 30, 0.08) 0%,
    transparent 60%
  );
}

/* ========== SOCIO AVATAR ========== */
.socio-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, #d14d18 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

/* ========== STATUS BADGE ========== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border: 1px solid;
}

.status-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

.status-badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.status-badge-warning {
  background: rgba(234, 179, 8, 0.1);
  color: #facc15;
  border-color: rgba(234, 179, 8, 0.3);
}

.status-badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.status-badge-inactive {
  background: rgba(107, 114, 128, 0.1);
  color: #9ca3af;
  border-color: rgba(107, 114, 128, 0.3);
}

/* ========== BTN SUCCESS ========== */
.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #16a34a;
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-success:hover {
  background: #15803d;
}

/* ========== BTN DANGER ========== */
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #dc2626;
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger:hover {
  background: #b91c1c;
}
