/* ===== COLORS ===== */
:root {
  --bg: #ffffff;
  --text: #111;
  --nav: #f8f9fa;
}

body.dark {
  --bg: #0f172a;
  --text: #f1f5f9;
  --nav: #020617;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

.navbar {
  background: var(--nav) !important;
  transition: background 0.3s ease;
}

/* ===== SWITCH ===== */
.theme-switch {
  width: 54px;
  height: 28px;
  position: relative;
}

.theme-switch input {
  display: none;
}

.theme-switch label {
  width: 100%;
  height: 100%;
  background: #cbd5f5;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  display: block;
  transition: background 0.3s ease;
}

/* knob */
.theme-switch label::after {
  content: "";
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.25s ease;
}

/* icons */
.icon {
  position: absolute;
  top: 5px;
  font-size: 14px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sun {
  right: 7px;
  opacity: 1;          /* ☀️ default ჩანს */
}

.moon {
  left: 7px;
  opacity: 0;          /* 🌙 default დამალულია */
}

/* ===== DARK (checked) ===== */
.theme-switch input:checked + label {
  background: #1e293b;
}

.theme-switch input:checked + label::after {
  transform: translateX(26px);
}

.theme-switch input:checked + label .sun {
  opacity: 0;
  transform: scale(0.8);
}

.theme-switch input:checked + label .moon {
  opacity: 1;
  transform: scale(1.1);
}
