/**
 * Notification Settings modal – task notifications 10–15 + sub-options.
 * Scoped under #notificationSettingsModal.
 */
#notificationSettingsModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

#notificationSettingsModal.notification-settings-modal-open,
#notificationSettingsModal.show {
  display: flex;
}

#notificationSettingsModal .modal-content {
  padding: 24px;
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

#notificationSettingsModal .modal-header {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

#notificationSettingsModal .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

#notificationSettingsModal .close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  transition: background 0.2s, color 0.2s;
}

#notificationSettingsModal .close-btn:hover {
  background: #e5e7eb;
  color: #1f2937;
}

#notificationSettingsModal .modal-body {
  overflow-y: auto;
  margin-bottom: 16px;
  flex: 1;
  min-height: 0;
}

#notificationSettingsModal .notification-settings-intro {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.5;
}

#notificationSettingsModal .notification-row-all {
  margin-bottom: 8px;
  padding: 14px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

#notificationSettingsModal .notification-row-all .notification-label {
  font-weight: 600;
  color: #1e40af;
}

#notificationSettingsModal .notification-settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* When All Notifications is ON: all switches below are disabled and greyed out */
#notificationSettingsModal .notification-settings-list.disabled-by-all .notification-row {
  opacity: 0.6;
  pointer-events: none;
}

#notificationSettingsModal .notification-row {
  padding: 12px 14px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

#notificationSettingsModal .notification-row-sub {
  margin-left: 20px;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

#notificationSettingsModal .notification-row.disabled,
#notificationSettingsModal .notification-row.sub-disabled-by-parent {
  opacity: 0.6;
  pointer-events: none;
}

#notificationSettingsModal .notification-row-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

#notificationSettingsModal .notification-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  flex: 1;
}

#notificationSettingsModal .notification-channels {
  display: flex;
  gap: 20px;
  padding-left: 44px;
}

#notificationSettingsModal .channel-check {
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

#notificationSettingsModal .channel-check input {
  margin: 0;
}

#notificationSettingsModal .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

#notificationSettingsModal .btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

#notificationSettingsModal .btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

#notificationSettingsModal .btn-secondary:hover {
  background: #e5e7eb;
}

#notificationSettingsModal .btn-primary {
  background: #ed2047;
  color: white;
}

#notificationSettingsModal .btn-primary:hover {
  background: #d91d40;
}

/* Switch (same pattern as more-options) */
#notificationSettingsModal .switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

#notificationSettingsModal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#notificationSettingsModal .switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  border-radius: 24px;
  transition: 0.25s;
}

#notificationSettingsModal .switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#notificationSettingsModal .switch input:checked + .slider {
  background-color: #ed2047;
}

#notificationSettingsModal .switch input:checked + .slider:before {
  transform: translateX(20px);
}
