/* Общие стили */
body.preloader #app {
  display: none;
}

body.preloader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
}

#loader {
  display: none;
}

body.preloader #loader {
  display: block;
  text-align: center;
  padding: 7.5vh 7.5vw;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

button {
  padding: 10px 20px;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

/* Светлая тема */
@media (prefers-color-scheme: light) {
  body {
    background-color: #ffffff;
    color: #000000;
  }

  .spinner {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: #000000;
  }

  button {
    background-color: #007bff;
    color: white;
  }

  button:hover {
    background-color: #0056b3;
  }
}

/* Тёмная тема */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #ffffff;
  }

  .spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
  }

  button {
    background-color: #007bff;
    color: white;
  }

  button:hover {
    background-color: #0056b3;
  }
}
