/* AdsSpaceHub Sprint 3-18 Dark Theme
   Tema oscuro profesional. Se activa con html[data-theme="dark"]. */
html[data-theme="dark"]{
  color-scheme:dark;
  --ash-primary:#8b5cf6;
  --ash-primary-dark:#6d3df4;
  --ash-primary-soft:#21183e;
  --ash-ink:#f8fafc;
  --ash-navy:#050816;
  --ash-muted:#9ca3af;
  --ash-line:rgba(148,163,184,.18);
  --ash-bg:#050816;
  --ash-card:#0b1020;
  --ash-card-2:#111827;
  --ash-success:#34d399;
  --ash-warning:#fbbf24;
  --ash-danger:#f87171;
  --ash-shadow:0 24px 70px rgba(0,0,0,.45);
  --ash-shadow-sm:0 12px 36px rgba(0,0,0,.32);
}
html[data-theme="dark"],html[data-theme="dark"] body{
  background:#050816!important;
  color:#f8fafc!important;
}
html[data-theme="dark"] body:not(.dash-body){
  background:
    radial-gradient(circle at 18% 12%,rgba(139,92,246,.22),transparent 30%),
    radial-gradient(circle at 90% 20%,rgba(37,99,235,.16),transparent 30%),
    linear-gradient(180deg,#050816 0%,#070b16 48%,#0b1020 100%)!important;
}
html[data-theme="dark"] .public-nav{
  background:rgba(5,8,22,.86)!important;
  border-bottom:1px solid rgba(148,163,184,.14)!important;
  box-shadow:0 10px 34px rgba(0,0,0,.34)!important;
  backdrop-filter:blur(18px);
}
html[data-theme="dark"] .public-nav .nav-link,
html[data-theme="dark"] .brand,
html[data-theme="dark"] .ash-brand,
html[data-theme="dark"] .back-link{
  color:#f8fafc!important;
}
html[data-theme="dark"] .hero-home{
  background:radial-gradient(circle at 78% 18%,rgba(139,92,246,.20),transparent 30%),linear-gradient(135deg,#050816 0%,#071022 45%,#111827 100%)!important;
}
html[data-theme="dark"] .hero-home:after{
  opacity:.72;
  background:linear-gradient(90deg,rgba(5,8,22,.95),rgba(5,8,22,.62) 38%,rgba(5,8,22,.08)),url('../img/mockups/main.png') center right/cover no-repeat!important;
}
html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .small.text-muted,
html[data-theme="dark"] .detail-meta{
  color:#a7b0c2!important;
}
html[data-theme="dark"] .hero-search,
html[data-theme="dark"] .ash-card,
html[data-theme="dark"] .booking-card,
html[data-theme="dark"] .chart-card,
html[data-theme="dark"] .reservations-card,
html[data-theme="dark"] .owner-kpi,
html[data-theme="dark"] .detail-panel,
html[data-theme="dark"] .space-card,
html[data-theme="dark"] .glass-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu{
  background:linear-gradient(180deg,rgba(17,24,39,.96),rgba(11,16,32,.98))!important;
  border:1px solid rgba(148,163,184,.18)!important;
  color:#f8fafc!important;
  box-shadow:var(--ash-shadow-sm)!important;
}
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] textarea.form-control{
  background:#0f172a!important;
  border-color:rgba(148,163,184,.22)!important;
  color:#f8fafc!important;
}
html[data-theme="dark"] .form-control::placeholder{color:#64748b!important;}
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus{
  background:#111827!important;
  border-color:rgba(139,92,246,.62)!important;
  box-shadow:0 0 0 .25rem rgba(139,92,246,.18)!important;
}
html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .btn-outline-secondary{
  background:#111827!important;
  border-color:rgba(148,163,184,.24)!important;
  color:#e5e7eb!important;
}
html[data-theme="dark"] .dash-body,
html[data-theme="dark"] body.dash-body .dash-shell,
html[data-theme="dark"] body.dash-body .dash-main{
  background:#050816!important;
  color:#f8fafc!important;
}
html[data-theme="dark"] body.dash-body .sidebar{
  background:linear-gradient(180deg,#020617 0%,#08111f 100%)!important;
  border-right:1px solid rgba(148,163,184,.12)!important;
}
html[data-theme="dark"] .table{--bs-table-bg:transparent;--bs-table-color:#f8fafc;--bs-table-border-color:rgba(148,163,184,.18);}
html[data-theme="dark"] .table td,html[data-theme="dark"] .table th{color:#e5e7eb!important;border-color:rgba(148,163,184,.18)!important;}
html[data-theme="dark"] .badge-dark-soft,
html[data-theme="dark"] .detail-tags span{background:#111827!important;color:#cbd5e1!important;border:1px solid rgba(148,163,184,.16)!important;}
html[data-theme="dark"] .footer-pro{background:#020617!important;}
.ash-theme-toggle{border:1px solid rgba(148,163,184,.22)!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;gap:.45rem!important;font-weight:700!important;}
html[data-theme="dark"] .ash-theme-toggle{background:#111827!important;color:#f8fafc!important;}
