html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0b0f19;
}

html[data-theme="light"],
html[data-theme="light"] body {
  background-color: #ffffff;
}

/* Drivewatch Boot Loader CSS */
.dwt-boot {
  --accent: #2563FF;
  --accentLight: #5A7CFF;
  --accentDeep: #1A47D9;
  --navy: #04060E;
  --navyDeep: #020308;
  font-family: "Geist", system-ui, sans-serif;
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(26, 71, 217, 0.20) 0%, transparent 62%),
    radial-gradient(46% 30% at 50% 8%, rgba(37, 99, 255, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, var(--navyDeep) 0%, var(--navy) 50%, var(--navyDeep) 100%);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.dwt-boot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 48%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 48%, #000, transparent);
}

.dwt-boot-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.dwt-hub {
  position: relative;
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
}

.dwt-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  transform: translate(-50%, -50%) scale(.42);
  opacity: 0;
  animation: dwtRingPulse 2.6s cubic-bezier(.2, .6, .3, 1) infinite;
}

.dwt-r2 {
  animation-delay: .86s;
}

.dwt-r3 {
  animation-delay: 1.72s;
}

@keyframes dwtRingPulse {
  0% {
    transform: translate(-50%, -50%) scale(.42);
    opacity: 0;
  }

  18% {
    opacity: .5;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.dwt-track {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 1px dashed rgba(37, 99, 255, 0.30);
}

.dwt-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  animation: dwtSpin 2.7s linear infinite;
}

.dwt-orbit::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  margin-left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9DB6FF;
  box-shadow: 0 0 12px 2px var(--accent);
}

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

.dwt-bdisc {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 30% 25%, #6A8DFF 0%, var(--accent) 55%, #1A47D9 100%);
  box-shadow: 0 0 50px -6px rgba(37, 99, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: dwtDiscPulse 2.6s ease-in-out infinite;
}

@keyframes dwtDiscPulse {

  0%,
  100% {
    transform: scale(.96);
  }

  50% {
    transform: scale(1.04);
  }
}

.dwt-bdisc svg path {
  stroke-dasharray: 64;
  stroke-dashoffset: 64;
  animation: dwtDraw 1.1s ease-out .25s forwards;
}

@keyframes dwtDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.dwt-boot-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.dwt-bword {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.dwt-bword .ink {
  color: #fff;
}

.dwt-bword .blue {
  color: #7FA0FF;
}

.dwt-bword .reg {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  margin-top: 2px;
}

.dwt-bbar {
  position: relative;
  width: 220px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.dwt-bbar>i {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accentLight), #9DB6FF);
  transition: width 0.4s ease;
}

.dwt-bstatus {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.dwt-bstatus .pct {
  color: #9DB6FF;
  margin-left: .55em;
}

/* Light Theme Adjustments */
html[data-theme="light"] .dwt-boot {
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(37, 99, 255, 0.10) 0%, transparent 62%),
    radial-gradient(46% 30% at 50% 8%, rgba(37, 99, 255, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F4F6FA 52%, #EAEEF6 100%);
}

html[data-theme="light"] .dwt-boot::before {
  background-image: linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

html[data-theme="light"] .dwt-track {
  border-color: rgba(37, 99, 255, 0.22);
}

html[data-theme="light"] .dwt-bword .ink {
  color: #0B1220;
}

html[data-theme="light"] .dwt-bword .blue {
  color: #2563FF;
}

html[data-theme="light"] .dwt-bword .reg {
  color: rgba(15, 23, 42, 0.45);
}

html[data-theme="light"] .dwt-bbar {
  background: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .dwt-bstatus {
  color: #64748B;
}

html[data-theme="light"] .dwt-bstatus .pct {
  color: #2563FF;
}

@media (prefers-reduced-motion: reduce) {

  .dwt-ring,
  .dwt-orbit,
  .dwt-bdisc,
  .dwt-bdisc svg path,
  .dwt-bbar>i {
    animation: none;
  }

  .dwt-bbar>i {
    width: 100%;
  }
}
