/* ═══════════════════════════════════════
   AlarmO'Clock — Alarm Page Styles
   ═══════════════════════════════════════ */

/* ── NAV CLOCK — always visible on inner pages ── */
.nav-clock {
  opacity: 1;
  transform: translateY(0);
}


/* ── CARD ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(100,60,180,0.08);
  position: relative;
  z-index: 1;
}


.card-body { padding: 28px 32px; }

.card-divider { height: 1px; background: rgba(255,255,255,0.5); margin: 24px 0; }

/* ── STATUS CARD ── */
.status-card { display: none; margin-bottom: 24px; }
.status-card.visible { display: block; }

.status-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.status-info { display: flex; align-items: center; gap: 14px; }
.status-icon { animation: ring 1s ease-in-out infinite; }

@keyframes ring {
  0%, 100% { transform: rotate(0deg); }
  10%  { transform: rotate(-15deg); }
  20%  { transform: rotate(15deg); }
  30%  { transform: rotate(-10deg); }
  40%  { transform: rotate(10deg); }
  50%  { transform: rotate(0deg); }
}

.status-text .status-title    { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.status-text .status-subtitle { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); }

.status-countdown {
  font-family: 'DM Mono', monospace;
  font-size: 45px;
  font-weight: 800;
  color: var(--accent);
  min-width: 100px;
  text-align: center;
}

.btn-cancel {
  padding: 12px 24px;
  background: rgba(224,92,92,0.12);
  color: #e05c5c;
  border: 1px solid rgba(224,92,92,0.25);
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-cancel:hover { background: rgba(224,92,92,0.2); transform: translateY(-1px); }

/* ── ALARM FIRING ── */
.alarm-firing {
  display: none;
  text-align: center;
  padding: 40px 32px;
}
.alarm-firing.visible { display: block; }
.alarm-firing h2 { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.alarm-firing p  { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.alarm-firing-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-dismiss {
  padding: 14px 40px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-dismiss:hover { background: #6a4aad; transform: translateY(-2px); }

.btn-snooze {
  padding: 10px 28px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.btn-snooze:hover { background: rgba(255,255,255,0.75); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(100,60,180,0.1); }
.snooze-label { font-size: 14px; font-weight: 700; color: var(--text); }
.snooze-sub   { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--muted); }

.time-input-12h {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: default;
}

.ti12-sel {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  padding: 0 2px;
}
.ti12-sel:focus { color: var(--accent); }

.ti12-ampm {
  font-size: 18px;
  color: var(--muted);
  margin-left: 4px;
}

.ti12-sep {
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  color: var(--text);
  line-height: 1;
  margin: 0 1px;
  pointer-events: none;
}
.alarm-setter { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }

.time-input-wrap { flex: 1; min-width: 160px; }

.time-input {
  width: 100%;
  padding: 0 20px;
  height: 52px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
  text-align: center;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.time-input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 0 3px rgba(124,92,191,0.15);
}

.btn-set {
  padding: 0 36px;
  height: 52px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-set:hover { background: #6a4aad; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,92,191,0.3); }
.btn-set:active { transform: translateY(0); }

/* ── QUICK ALARMS ── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.btn-quick {
  padding: 14px 10px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.4);
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--text); cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.btn-quick:hover { border-color: var(--accent); background: rgba(124,92,191,0.08); transform: translateY(-1px); }
.btn-quick .quick-label-text { font-size: 13px; font-weight: 700; }
.btn-quick .quick-time        { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted); transition: color 0.2s; }
.btn-quick:hover .quick-time  { color: rgba(124,92,191,0.7); }

/* ── HOW TO USE ── */
.how-bare  { padding-bottom: 64px; }
.faq-bare  { padding-bottom: 64px; }

.how-steps { display: flex; flex-direction: column; gap: 16px; }

.how-step { display: flex; align-items: flex-start; gap: 16px; }

.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(124,92,191,0.15);
  border: 1px solid rgba(124,92,191,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.step-text { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--muted); line-height: 1.6; padding-top: 6px; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.4); overflow: hidden; }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  gap: 16px;
  user-select: none;
}
.faq-question:hover { color: var(--accent); }
.faq-caret { font-size: 11px; color: var(--muted); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-caret { transform: rotate(180deg); }

.faq-answer {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 18px; }

/* ── SOUND DROPDOWN ROW ── */
.sound-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sound-row-left  { display: flex; flex-direction: column; gap: 4px; }
.sound-selected-desc { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted); }
.sound-row-right { display: flex; align-items: center; gap: 10px; position: relative; }

.sound-test-btn {
  padding: 0 16px;
  height: 40px;
  background: rgba(124,92,191,0.1);
  border: 1px solid rgba(124,92,191,0.2);
  border-radius: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.sound-test-btn:hover { background: rgba(124,92,191,0.2); }

.sound-dropdown-wrap { position: relative; }

.sound-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 40px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-width: 180px;
  justify-content: space-between;
}
.sound-dropdown-trigger:hover { background: rgba(255,255,255,0.85); border-color: rgba(124,92,191,0.3); }

.sound-caret { font-size: 11px; color: var(--muted); transition: transform 0.2s; margin-left: 4px; }
.sound-caret.open { transform: rotate(180deg); }

.sound-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(100,60,180,0.18);
  z-index: 50;
  animation: fadeUp 0.15s ease forwards;
}
.sound-dropdown.open { display: block; }

.sound-drop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(124,92,191,0.06);
}
.sound-drop-item:last-child { border-bottom: none; }
.sound-drop-item:hover    { background: rgba(124,92,191,0.07); }
.sound-drop-item.selected { background: rgba(124,92,191,0.1); }
.sdi-name { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; color: var(--text); flex: 1; }
.sound-drop-item.selected .sdi-name { color: var(--accent); }
.sdi-desc { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--muted); white-space: nowrap; }

/* ── DESKTOP — min-width: 769px ── */
@media (min-width: 769px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .alarm-setter { flex-direction: row; }
  .btn-set { width: auto; }
  .status-inner { flex-direction: row; align-items: center; }
}



  .alarm-setter { width: 100%; overflow: hidden; }
  .time-input-wrap { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
  .time-input { width: 100%; box-sizing: border-box; font-size: 22px; padding: 0 12px; }
  .time-input-12h { width: 100%; box-sizing: border-box; overflow: hidden; }
  .btn-set { width: 100%; }
}

  .time-input-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .time-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 24px;
  }
  .time-input-12h {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .alarm-card .card-body { overflow: hidden; }
}

@media (max-width: 768px) {
  .alarm-setter {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .time-input-wrap {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }
  .time-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 24px;
  }
  .time-input-12h {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .alarm-setter { width: 100%; overflow: hidden; box-sizing: border-box; }
  .time-input-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .time-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 22px;
    padding: 0 10px;
  }
  .time-input-12h {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .card-body { overflow: hidden; }
}

@media (max-width: 768px) {
  .sound-dropdown {
    right: auto;
    left: 0;
    min-width: 0;
    width: max-content;
    max-width: calc(100vw - 48px);
  }
  .sound-dropdown-trigger {
    min-width: 0;
    width: 100%;
  }
  .sound-dropdown-wrap {
    flex: 1;
  }
}

@media (min-width: 769px) {
  .btn-set { width: auto !important; }
}
