.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(2px);
}

.dialog-modal {
  background-color: #2d2d2d;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 440px;
  overflow: hidden;
  animation: dialogFadeIn 0.2s ease-out;
}

@keyframes dialogFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes dialogFadeOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  to {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
}

@keyframes overlayFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.dialog-overlay-closing {
  animation: overlayFadeOut 0.15s ease-in forwards;
}

.dialog-modal-closing {
  animation: dialogFadeOut 0.15s ease-in forwards;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #252525;
}

.dialog-title {
  color: #e0e0e0;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.dialog-close-btn {
  background: transparent;
  border: none;
  color: #b0b0b0;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.dialog-close-btn:hover {
  background-color: #3a3a3a;
  color: #e0e0e0;
}

.dialog-body {
  padding: 24px 20px;
  background-color: #2d2d2d;
}

.dialog-message {
  color: #e0e0e0;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.dialog-input {
  width: 100%;
  margin-top: 12px;
  padding: 8px 10px;
  background-color: #1e1e1e;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.dialog-input:focus {
  border-color: #5a9fd4;
}

.dialog-timesig-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.dialog-timesig-input {
  width: 72px;
  margin-top: 0;
  text-align: center;
}

.dialog-timesig-sep {
  color: #b0b0b0;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  background-color: #2d2d2d;
}

.dialog-btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.dialog-btn-primary {
  background-color: #5a9fd4;
  color: #fff;
}

.dialog-btn-primary:hover {
  background-color: #4a8fc4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(90, 159, 212, 0.3);
}

.dialog-btn-cancel {
  background-color: #3a3a3a;
  color: #b0b0b0;
}

.dialog-btn-cancel:hover {
  background-color: #4a4a4a;
  color: #e0e0e0;
}

.dialog-btn-secondary {
  background-color: transparent;
  color: #5a9fd4;
  border: 1px solid #5a9fd4;
}

.dialog-btn-secondary:hover {
  background-color: rgba(90, 159, 212, 0.12);
  transform: translateY(-1px);
}