:root {
  --bs-body-bg: #020617; /* Slate 950 */
  --bs-body-color: #f8fafc; /* Slate 50 */
  --color-yellow-bright: #eab308; /* Yellow 500 */
  --color-yellow-primary: #ca8a04; /* Yellow 600 */
  --color-navy-darker: #020617;
  --color-navy-dark: #0f172a; /* Slate 900 */
  --color-navy-primary: #1e293b; /* Slate 800 */
  --color-navy-light: #334155; /* Slate 700 */
  --color-navy-accent: #475569; /* Slate 600 */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  overflow-x: hidden;
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-yellow-bright);
}

/* Nav styling */
.navbar-custom {
  background-color: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-yellow-bright);
  transition: all 0.3s ease;
}

/* Tailwind Compatibility Layer */
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }

.flex-col {
  flex-direction: column !important;
}
.justify-between {
  justify-content: space-between !important;
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.5rem !important;
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.75rem !important;
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem !important;
}
.max-w-2xl {
  max-width: 42rem !important;
}
.cursor-pointer {
  cursor: pointer !important;
}
.relative {
  position: relative !important;
}
.shrink-0 {
  flex-shrink: 0 !important;
}
.font-black {
  font-weight: 900 !important;
}
.italic {
  font-style: italic !important;
}
.leading-tight {
  line-height: 1.25 !important;
}
.leading-none {
  line-height: 1 !important;
}
.inline-block {
  display: inline-block !important;
}
.font-bold {
  font-weight: 700 !important;
}
.uppercase {
  text-transform: uppercase !important;
}
.tracking-widest {
  letter-spacing: 0.1em !important;
}
.tracking-wider {
  letter-spacing: 0.05em !important;
}
.tracking-tight {
  letter-spacing: -0.025em !important;
}

/* Card Selection Active Styling */
.select-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.select-card:hover {
  border-color: rgba(234, 179, 8, 0.4) !important;
  transform: translateY(-2px);
}
.select-card:has(input[type="radio"]:checked) {
  border-color: var(--color-yellow-bright) !important;
  background-color: rgba(234, 179, 8, 0.08) !important;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.15) !important;
}
.select-card input[type="radio"] {
  accent-color: var(--color-yellow-bright);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.nav-link-custom {
  color: #cbd5e1;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem !important;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.nav-link-custom:hover, .nav-link-custom.active {
  color: #020617 !important;
  background-color: var(--color-yellow-bright);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.2);
}

/* Buttons */
.btn-yellow {
  background-color: var(--color-yellow-bright);
  color: #020617;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  transition: all 0.2s ease;
}
.btn-yellow:hover {
  background-color: #facc15;
  color: #020617;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(234, 179, 8, 0.3);
}

.btn-outline-yellow {
  border: 2px solid var(--color-yellow-bright);
  color: var(--color-yellow-bright);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  background: transparent;
  transition: all 0.2s ease;
}
.btn-outline-yellow:hover {
  background-color: var(--color-yellow-bright);
  color: #020617;
  transform: translateY(-2px);
}

/* Glow background elements */
.glow-bg-navy {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(51, 65, 85, 0.2) 0%, rgba(2, 6, 23, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.glow-bg-yellow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.06) 0%, rgba(2, 6, 23, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Theme Cards */
.premium-card {
  background-color: rgba(15, 23, 42, 0.5); /* Slate 900 with opacity */
  border: 1px solid #1e293b;
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-card:hover {
  border-color: rgba(234, 179, 8, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.popular-card {
  background-color: #0f172a;
  border: 2px solid var(--color-yellow-bright);
  border-radius: 1rem;
  position: relative;
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(234, 179, 8, 0.1);
}

.feature-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-yellow-bright);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Floating WA bubble */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  padding: 12px 20px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.wa-float:hover {
  background-color: #128c7e;
  color: white;
  transform: scale(1.05) translateY(-2px);
}

/* Timeline Tracker */
.tracker-step {
  position: relative;
  padding-left: 35px;
  margin-bottom: 20px;
}
.tracker-step::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: -24px;
  width: 2px;
  background-color: #1e293b;
  z-index: 1;
}
.tracker-step:last-child::before {
  display: none;
}
.tracker-node {
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}
.node-completed {
  background-color: var(--color-yellow-bright);
  color: #020617;
}
.node-active {
  background-color: #3b82f6;
  color: white;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
.node-pending {
  background-color: #1e293b;
  color: #64748b;
}

/* Accordion custom styling */
.accordion-button-custom {
  background-color: #0f172a !important;
  color: white !important;
  border: 1px solid #1e293b !important;
  border-radius: 0.5rem !important;
  box-shadow: none !important;
}
.accordion-button-custom:not(.collapsed) {
  border-color: var(--color-yellow-bright) !important;
  color: var(--color-yellow-bright) !important;
}
.accordion-item-custom {
  background-color: transparent !important;
  border: none !important;
  margin-bottom: 10px;
}
.accordion-body-custom {
  background-color: rgba(15, 23, 42, 0.3) !important;
  border: 1px solid #1e293b !important;
  border-top: none !important;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  color: #94a3b8;
}

/* Fade in animation for simulator */
.animate-fade-in {
  animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-xs {
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
}

/* Admin Dashboard CSS Rules */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background-color: #0f172a; /* slate-900 */
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-main {
  flex-grow: 1;
  min-height: 100vh;
  background-color: #020617; /* slate-950 */
}
.admin-card {
  background-color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.status-pill {
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 50px;
  display: inline-block;
}
.status-completed {
  background-color: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-active {
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.status-pending {
  background-color: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.table-custom {
  color: #cbd5e1;
}
.table-custom th {
  background-color: #1e293b;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}
.table-custom td {
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 0.75rem;
}
.truncate-text {
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
