.tom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 150px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 999999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.tom-alert-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.tom-alert-box {
  background: var(--bg-surface, var(--bg-panel, #1e1e1e));
  border: 2px solid var(--accent-color, #409eff);
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: dialogSlideIn 0.2s ease-out;
  overflow: hidden;
}
.tom-alert-overlay.visible .tom-alert-box {
  transform: none;
}
@keyframes dialogSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.tom-alert-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color, #333);
  background: rgba(var(--accent-color-rgb, 64, 158, 255), 0.1);
}
.tom-alert-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary, #e6e6e6);
  text-align: center;
}
.tom-alert-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tom-alert-content {
  color: var(--text-primary, #e6e6e6);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  white-space: pre-wrap;
  width: 100%;
  margin: 0 0 16px 0;
}
.tom-alert-input {
  width: 100%;
  padding: 10px;
  margin: 0;
  background: var(--bg-input, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color, #333);
  border-radius: 6px;
  color: var(--text-primary, #e6e6e6);
  font-size: 16px;
  outline: none;
  display: none;
  text-align: center;
}
.tom-alert-input:focus {
  border-color: var(--accent-color, #409eff);
  box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb, 64, 158, 255), 0.2);
}
.tom-alert-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 15px 20px;
  border-top: 1px solid var(--border-color, #333);
}
.tom-alert-btn {
  background: transparent;
  border: 1px solid var(--border-color, #333);
  color: var(--text-primary, #e6e6e6);
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  min-width: 120px;
}
.tom-alert-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary, #a0a0a0);
}
.tom-alert-btn.primary {
  background-color: #67c23a;
  border-color: #67c23a;
  color: #fff;
  font-weight: 600;
}
.tom-alert-btn.primary:hover {
  background-color: #5daf34;
  border-color: #5daf34;
  box-shadow: 0 0 12px rgba(103, 194, 58, 0.5);
}
