/* 娣�?��?�琛�??▼鎸夐挳 */
.add-button-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: var(--z-modal-backdrop);
}

.add-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 200ms ease;
}

.add-button:hover {
  background-color: var(--primary-dark);
}

.add-button:active {
  opacity: 0.85;
}

/* ==================== Modals ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z-tooltip);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 闈欓煶杞�??帰澶嶉�夋�嗘牱�??�?? */
.quiet-car-checkbox-input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xs);
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--color-bg-surface);
  display: inline-block;
  vertical-align: middle;
}

.quiet-car-checkbox-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

.quiet-car-checkbox-input:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 6px;
  height: 6px;
  background-color: var(--color-bg-surface);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  animation: checkAnimation 0.3s ease-in-out;
}

@keyframes checkAnimation {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.quiet-car-checkbox-input:hover {
  border-color: var(--primary);
  box-shadow: 0 0 8px color-mix(in srgb, var(--primary) 20%, transparent);
}

.quiet-car-checkbox-input:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.quiet-car-checkbox-input:active {
  transform: scale(0.95);
}

/* 鍒犻櫎纭�璁ゅ脊绐�?�伄缃� */
.delete-confirm-overlay {
  z-index: var(--z-tooltip);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  overscroll-behavior: none;
}

.modal-content {
  background-color: var(--color-bg-surface);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-content h3 {
  margin-bottom: 0;
  color: var(--text-primary);
  font-size: 18px;
  flex-shrink: 0;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.journey-switcher {
  display: flex;
  gap: 8px;
  background: var(--background-light);
  padding: 6px;
  border-radius: var(--radius-xl);
  position: relative;
  flex-shrink: 0;
}

.journey-button {
  padding: 6px 20px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
}
