/* ====== ÎÑÍÎÂÍÛÅ ÑÒÈËÈ ====== */
:root {
  --bg: #0d0d0d;
  --text: #f1f1f1;
  --card: #1a1a1a;
  --accent: #007bff;
  --success: #22c55e;
  --error: #ef4444;
  --border: #333;
}

[data-theme="light"] {
  --bg: #fafafa;
  --text: #111;
  --card: #fff;
  --accent: #007bff;
  --border: #ccc;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  transition: background 0.3s, color 0.3s;
}

/* ====== ØÀÏÊÀ ====== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  padding: 15px 25px;
  border-bottom: 1px solid var(--border);
  flex-wrap: nowrap;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  white-space: nowrap;
}

header .logo {
  width: 30px;
  height: 30px;
}

/* Íàâèãàöèÿ ñïðàâà */
nav {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: nowrap;
}

nav a {
  text-decoration: none;
  color: var(--text);
  opacity: 0.7;
  transition: 0.2s;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  opacity: 1;
  color: var(--accent);
}

/* Èêîíêà òåìû */
.theme-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  transition: 0.2s;
}

.theme-toggle:hover {
  color: var(--accent);
}

/* Ìîáèëüíàÿ àäàïòàöèÿ äëÿ øàïêè */
@media (max-width: 600px) {
  header {
    padding: 10px 14px;
  }

  nav {
    gap: 18px;
  }

  .brand {
    font-size: 16px;
  }

  .theme-toggle {
    font-size: 20px;
  }
}

/* ====== GUIDE PAGE ====== */
.guide-container {
  max-width: 1000px;
  width: 90%;
  margin: 50px auto;
  padding: 30px;
  color: var(--text);
  line-height: 1.7;
}

.guide-content {
  background: var(--card);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
}

.guide-container h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  text-align: center;
}

.guide-container .subtitle {
  text-align: center;
  margin-bottom: 40px;
  opacity: 0.8;
}

.guide-content h2 {
  margin-top: 25px;
  font-size: 1.3rem;
  color: var(--accent);
}

.guide-content ul {
  margin: 10px 0 20px 25px;
  list-style-type: disc;
}

.note {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .guide-content {
    padding: 20px;
  }

  .guide-container h1 {
    font-size: 1.5rem;
  }
}

/* ====== ÊÎÍÒÅÉÍÅÐ ====== */
.container {
  max-width: 500px;
  background: var(--card);
  margin: 60px auto;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

h1 {
  text-align: center;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  opacity: 0.8;
  margin-bottom: 25px;
}

/* ====== ÔÎÐÌÀ ====== */
.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="file"],
input[type="password"],
input[type="text"] {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
}

input::file-selector-button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 600;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 42px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.toggle-password:hover {
  opacity: 1;
}

.btn-main {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-main:hover {
  opacity: 0.9;
}

/* ====== ÏÐÎÃÐÅÑÑ-ÁÀÐ ====== */
.progress-container {
  margin-top: 25px;
  text-align: center;
}

.hidden {
  display: none !important;
}

.progress-label {
  margin-bottom: 8px;
  font-size: 14px;
}

.progress-bar {
  width: 100%;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
  height: 12px;
}

.progress-fill {
  background: var(--accent);
  height: 100%;
  width: 0%;
  transition: width 0.2s;
}

/* ====== ÌÎÄÀËÜÍÎÅ ÎÊÍÎ ====== */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--card);
  padding: 30px 25px;
  border-radius: 16px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

.success-icon {
  font-size: 48px;
  color: var(--success);
  margin-bottom: 15px;
}

.modal .btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  margin: 8px 6px;
  font-size: 14px;
}

.modal .btn.install {
  background: var(--accent);
  color: #fff;
}

.modal .btn.copy {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ====== ÔÓÒÅÐ ====== */
footer {
  text-align: center;
  margin-top: 50px;
  padding: 25px 0;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.footer-links {
  margin-bottom: 8px;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-credit {
  font-size: 13px;
  opacity: 0.7;
}

/* ====== ÀÄÀÏÒÈÂ ====== */
@media (max-width: 480px) {
  .container {
    margin: 40px 15px;
    padding: 25px;
  }

  h1 {
    font-size: 22px;
  }
}

/* === âíåøíèé âèä select (äëÿ ñïèñêà ïðèëîæåíèé) === */
select {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
}