/* Loader container */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d1117; /* VSCode koyu arka plan */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Spinner SVG */
.spinner {
  animation: rotate 1.5s linear infinite;
  width: 80px;
  height: 80px;
}

.path {
  stroke: #00b4d8; /* Mavi ton (VSCode mavisi) */
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

/* Animasyonlar */
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Sayfa yüklenince loader kaybolsun */
body.loaded #loader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}