/* ===== Settings View ===== */
#settings-view {
  background: rgba(0, 0, 0, 0.95);
  z-index: 80;
}

#settings-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 32px;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.settings-title {
  font-size: 28px;
  font-weight: 300;
}

.settings-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-close:active {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Settings Sections ===== */
.settings-section {
  margin-bottom: 32px;
}

.settings-section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Form Controls ===== */
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.settings-sublabel {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.settings-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  min-width: 120px;
  text-align: right;
}

.settings-input:focus {
  border-color: rgba(100, 149, 237, 0.6);
}

.settings-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
}

.settings-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.settings-toggle.on {
  background: #4caf50;
}

.settings-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s;
}

.settings-toggle.on::after {
  transform: translateX(20px);
}

/* ===== Routine Day Config ===== */
.routine-day-config {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.routine-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.routine-day-name {
  font-size: 15px;
  font-weight: 500;
}

.routine-times {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.routine-milestones-config {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.routine-milestone-tag {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== Auth Status ===== */
.auth-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.auth-status-dot.connected { background: #4caf50; }
.auth-status-dot.disconnected { background: #f44336; }

.auth-button {
  background: rgba(100, 149, 237, 0.3);
  border: 1px solid rgba(100, 149, 237, 0.5);
  border-radius: 8px;
  padding: 8px 16px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.auth-button:active {
  background: rgba(100, 149, 237, 0.5);
}
