
:root {
  --bg-color: #0e0e10;
  --text-color: #f0f0f0;
  --accent-color: #9147ff;
  --bgbutton: #111;
}

[data-theme="light"] {
  --bg-color: #f9f9f9;
  --text-color: #1f1f23;
  --accent-color: #b98aff;
  --bgbutton: #ddd;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.status {
  font-size: 2.2em;
  padding: 0.8em 1.2em;
  border-radius: 14px;
  background: var(--bgbutton);
  max-width: 90%;
}

.status .ok {
  color: greenyellow;
}

[data-theme="light"] .status .ok {
  color: green;
}

.status .down {
  color: darkred;
}

.progress-container {
  min-width: 338px;
  background-color: #ddd;
  border-radius: 20px;
  overflow: hidden;
  margin: 20px;
  position: relative;
}

.progress-bar {
  width: 0%;
  height: 30px;
  background: linear-gradient(90deg, #00aa00, #00d800);
  transition: width 1s ease-in-out;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.progress-text {
  position: absolute;
  width: 100%;
  text-align: center;
  color: var(--text-color);
  top: 10%;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.error-bar {
  background: linear-gradient(90deg, #aa0000, #d80000) !important; /* Красный при ошибке */
}

.theme-toggle, .lang-toggle {
  position: absolute;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color 0.3s;
  cursor: pointer;
}

.theme-toggle {
  right: 1rem;
}

.lang-toggle {
  left: 1rem;
}

.theme-toggle:hover {
  opacity: 0.8;
}