
:root {
  --bg-color: #f0f2f5;
  --container-bg: #ffffff;
  --text-primary: #1c1e21;
  --text-secondary: #65676b;
  --border-color: rgba(0, 0, 0, 0.1);
  --select-bg: #f8f9fa;
  --accent-color: #4a90e2;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.dark-theme {
  --bg-color: #0f172a;
  --container-bg: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --select-bg: #334155;
  --accent-color: #38bdf8;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}


.container {
  width: 100%;
  max-width: 550px;
  background: var(--container-bg);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

h1 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}


select {
  display: block;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--select-bg);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 30px;
}

select:focus {
  border-color: var(--accent-color);
}


.city {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px dashed var(--border-color);
  transition: border-color 0.3s ease;
}

.city:last-of-type {
  border-bottom: none;
}

.date {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.time {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: -0.5px;
}

.time small {
  font-size: 18px;
  font-weight: 600;
  margin-left: 2px;
}

#cities a {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

#cities a:hover {
  text-decoration: underline;
}


.theme-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#theme-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 46px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
}

.slider:before {
  background-color: #fff;
  bottom: 3px;
  content: "";
  height: 18px;
  left: 3px;
  position: absolute;
  transition: 0.4s;
  width: 18px;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}


footer {
  text-align: center;
  font-size: 14px;
  margin-top: 25px;
  color: var(--text-secondary);
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}