
.background-blue {
  background-image: url("img/background_lunar.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: 100%;
  margin: 0;
  font-family: sans-serif;
  color: #e6ebff;
}

.option_blue_bright {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 20px;
  left: 20px;
  object-fit: contain;
  cursor: pointer;
  z-index: 1000;
}

.page-title {
  margin: 80px auto 16px;
  text-align: center;
  font-size: 28px;
  letter-spacing: .3px;
  color: #e6ebff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

.sidebar {
  position: fixed;
  top: 0;
  left: -120px;
  width: 100px;
  height: 35%;
  background-color: rgba(30, 30, 60, 0.7);
  transition: left 0.3s ease;
  padding-top: 80px;
  z-index: 999;
  border-radius: 20px;
}
.sidebar.open { left: 0; }

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-icon {
  width: 40px;
  height: 40px;
  margin: 20px 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.menu-icon:hover { transform: scale(1.1); }

.picker {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  height: 350px;
  margin-top: 40px;
}

.picker-wheel {
  width: 80px;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}
.picker-wheel::-webkit-scrollbar { display: none; }

.picker-wheel div {
  scroll-snap-align: center;
  text-align: center;
  font-size: 28px;
  padding: 16px 0;
  color: #aaa;
  user-select: none;
}

.picker-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 40px;
  margin-top: -20px;
  margin-left: -25%;
  border-top: 2px solid #687cdc;
  border-bottom: 2px solid #687cdc;
  pointer-events: none;
  box-shadow: 0 0 10px 3px rgba(104, 124, 220, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.alarm-container {
  text-align: center;
  margin-top: 140px;
  color: #687cdc;
}

.alarm-container button,
.primary-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(104, 124, 220, 0.35);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.alarm-container button:hover,
.primary-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.alarm-container button:active,
.primary-btn:active {
  transform: translateY(0);
}

.hidden { display: none; }

.alarm-small-box {
  margin-top: 20px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(104, 124, 220, 0.35);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: sans-serif;
  color: #e6ebff;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #687cdc; }
input:checked + .slider:before { transform: translateX(18px); }

.alarm-info p { margin: 0; font-size: 14px; }

.alarm-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.alarm-info { display: flex; flex-direction: column; align-items: flex-start; }

.wifi-toggle { cursor: pointer; width: 28px; height: 28px; position: relative; }
.wifi-icon { width: 100%; height: 100%; position: relative; }
.wifi-icon::before,
.wifi-icon::after {
  content: "";
  position: absolute;
  border: 2px solid #687cdc;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
}
.wifi-icon::before { width: 22px; height: 22px; top: 2px; opacity: 0.4; }
.wifi-icon::after { width: 12px; height: 12px; top: 8px; opacity: 1; }
.wifi-icon.on::before, .wifi-icon.on::after { border-color: #687cdc; opacity: 1; }
.wifi-icon.off::before, .wifi-icon.off::after { border-color: #aaa; opacity: 0.3; }

.center-box {
  width: min(560px, 90%);
  margin: 12px auto 0;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(104, 124, 220, 0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.center-box h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #e6ebff;
  letter-spacing: .2px;
}

.settings-list {
  list-style: none;
  margin: 8px 0 0; padding: 0;
  border-radius: 12px; overflow: hidden;
}
.settings-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; font-size: 16px; color: #e6ebff;
  background: rgba(255,255,255,0.02); position: relative;
}
.settings-list li + li { border-top: 1px solid rgba(230, 235, 255, 0.12); }
.settings-list li:hover { background: rgba(255,255,255,0.06); }
.settings-list li::after { content: "›"; font-size: 18px; opacity: 0.6; }

@media (max-width: 480px) {
  .page-title { margin-top: 72px; font-size: 24px; }
  .center-box { padding: 16px; }
}

.alarm-container h2 { color: #fff; }

.settings-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.settings-link:hover { text-decoration: none; }

.form-card h2 {
  margin: 0 0 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}

.form-row label {
  font-size: 14px;
  color: #e6ebff;
  opacity: 0.9;
}

.form-row input,
.form-row textarea,
.form-row select {
  padding: 12px 14px;
  font-size: 15px;
  color: #e6ebff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(104, 124, 220, 0.35);
  border-radius: 10px;
  outline: none;
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
}

.form-row select option {
  color: #1a1a2e;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(230, 235, 255, 0.6);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #8ea0ff;
  box-shadow: 0 0 0 3px rgba(104, 124, 220, 0.25);
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
  min-height: 18px;
}
.form-status.success { color: #7cffb1; }
.form-status.error { color: #ff8a8a; }

.form-footnote {
  font-size: 12px;
  color: rgba(230,235,255,0.75);
  margin-top: 8px;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

/* Login Overlay */
.login-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10, 15, 40, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.login-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(104, 124, 220, 0.35);
  border-radius: 20px;
  padding: 30px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  color: #e6ebff;
}

.login-box h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #fff;
}

/* Mystery-Song Reveal */
.song-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reveal-cover-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 20px;
  border-radius: 16px;
}

.reveal-cover-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 22px;
  background: conic-gradient(from 0deg, #687cdc, #8ea0ff, #7cffb1, #687cdc);
  filter: blur(14px);
  opacity: 0.8;
  animation: reveal-glow-spin 4s linear infinite;
}

.reveal-cover {
  position: relative;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.song-reveal h2 {
  margin: 0 0 4px;
  font-size: 22px;
  color: #fff;
}

.song-reveal p {
  margin: 0 0 20px;
  font-size: 15px;
  color: rgba(230, 235, 255, 0.85);
}

.song-reveal-animate .reveal-cover-wrap,
.song-reveal-animate h2,
.song-reveal-animate p,
.song-reveal-animate button {
  animation: reveal-pop 0.6s cubic-bezier(.26,1.4,.44,1) backwards;
}
.song-reveal-animate h2 { animation-delay: 0.1s; }
.song-reveal-animate p { animation-delay: 0.18s; }
.song-reveal-animate button { animation-delay: 0.26s; }

@keyframes reveal-pop {
  0% { opacity: 0; transform: scale(0.4); }
  70% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes reveal-glow-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ios-hint {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, 90%);
  text-align: center;
  font-size: 13px;
  color: #e6ebff;
  background: rgba(104, 124, 220, 0.18);
  border: 1px solid rgba(104, 124, 220, 0.4);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1500;
}

.mode-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  color: #c5d0ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(104, 124, 220, 0.35);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hidden { display: none; }
