/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

/* Gradient Text Utility */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, #06b6d4, #3b82f6);
}

/* Glassmorphism */
.glass {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

/* Timeline styles */
.timeline-dot::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #06b6d4;
  border: 3px solid #020617;
  transition: border-color 0.3s ease;
}

/* Shared Header for Internal Pages */
.page-header {
  position: relative;
  padding-top: 8rem; /* Creates space for the fixed navbar */
  padding-bottom: 4rem;
  background-color: #020617; /* Matches your darker theme */
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  overflow: hidden;
  text-align: center;
}

/* Subtle background accent for internal pages */
.page-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.1) 0%,
    rgba(2, 6, 23, 0) 70%
  );
  z-index: 0;
}

.page-header-content {
  position: relative;
  z-index: 10;
}

/* --- LIGHT MODE OVERRIDES --- */
/* Forces Light Mode without needing to alter HTML content classes */
html.light,
html.light body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}
html.light .bg-darker {
  background-color: #f8fafc !important;
}
html.light .bg-dark {
  background-color: #f1f5f9 !important;
}
html.light .bg-card {
  background-color: #ffffff !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08) !important;
}

html.light .text-white {
  color: #0f172a !important;
}
html.light .text-slate-300 {
  color: #334155 !important;
}
html.light .text-slate-400 {
  color: #475569 !important;
}
html.light .text-slate-500 {
  color: #64748b !important;
}

html.light .border-slate-600 {
  border-color: #94a3b8 !important;
}
html.light .border-slate-700 {
  border-color: #cbd5e1 !important;
}
html.light .border-slate-700\/30 {
  border-color: rgba(203, 213, 225, 0.5) !important;
}
html.light .border-slate-700\/50 {
  border-color: rgba(203, 213, 225, 0.8) !important;
}
html.light .border-slate-800,
html.light .border-slate-800\/50 {
  border-color: #e2e8f0 !important;
}

html.light .bg-slate-800,
html.light .bg-slate-800\/50 {
  background-color: #e2e8f0 !important;
}
html.light .bg-slate-900 {
  background-color: #e2e8f0 !important;
}

html.light input,
html.light textarea {
  color: #0f172a !important;
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
}
html.light .placeholder-slate-600::placeholder {
  color: #94a3b8 !important;
}

html.light .glass {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
html.light .timeline-dot::before {
  border: 3px solid #f8fafc !important;
}
