/* Notification Preferences page (PWA) */

.subtitle {
  opacity: 0.9;
  font-size: 0.9rem;
}

.field {
  margin-top: 1rem;
}

label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

input[type="number"],
input[type="time"],
input[type="text"],
select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.row.three {
  grid-template-columns: repeat(3, 1fr);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  margin-top: 0.75rem;
}

.toggle-row small {
  color: var(--text-light);
  display: block;
  margin-top: 0.2rem;
  font-weight: 600;
}

.toggle-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 800;
  font-size: 0.95rem;
}

.btn.primary { background: var(--primary); color: white; }
.btn.secondary { background: #eef2ff; color: var(--primary-dark); }
.btn.danger { background: rgba(239, 68, 68, 0.12); color: #7f1d1d; border: 1px solid rgba(239, 68, 68, 0.35); }

.help {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.hint {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.10);
  color: var(--text, #1f2937);
  display: none;
  white-space: pre-wrap;
  font-size: 0.85rem;
  line-height: 1.35;
}

.hint.warn {
  border-color: rgba(245, 158, 11, 0.40);
  background: rgba(245, 158, 11, 0.12);
}

.hint.danger {
  border-color: rgba(239, 68, 68, 0.40);
  background: rgba(239, 68, 68, 0.10);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
}

.debug-output {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.03);
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
}

.status {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #064e3b;
  display: none;
  white-space: pre-wrap;
}

.status.error {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.35);
  color: #7f1d1d;
}

@media (max-width: 480px) {
  .row { grid-template-columns: 1fr; }
  .row.three { grid-template-columns: 1fr; }
}
