/* altcss/confirmation-dialog.css */
confirmation-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
}

.confirmation-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.confirmation-backdrop.confirmation-show {
  opacity: 1;
}

.confirmation-dialog {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: calc(100% - 32px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirmation-dialog.confirmation-show {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.confirmation-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.confirmation-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.confirmation-icon-warning {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 2px solid rgba(251, 191, 36, 0.3);
}

.confirmation-icon-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 2px solid rgba(239, 68, 68, 0.3);
}

.confirmation-icon-info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.confirmation-icon-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 2px solid rgba(34, 197, 94, 0.3);
}

.confirmation-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  flex: 1;
}

.confirmation-message {
  font-size: 15px;
  color: #a0aec0;
  line-height: 1.6;
  margin-bottom: 32px;
  white-space: pre-wrap;
}

.confirmation-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.confirmation-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 100px;
}

.confirmation-btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: #a0aec0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.confirmation-btn-cancel:active {
  transform: scale(0.98);
}

.confirmation-btn-confirm {
  position: relative;
  overflow: hidden;
}

.confirmation-btn-confirm::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.confirmation-btn-confirm:hover::before {
  left: 100%;
}

.confirmation-btn-confirm:active {
  transform: scale(0.98);
}

.confirmation-btn-warning {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000000;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.confirmation-btn-warning:hover {
  box-shadow: 0 6px 16px rgba(251, 191, 36, 0.4);
  transform: translateY(-1px);
}

.confirmation-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.confirmation-btn-danger:hover {
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.confirmation-btn-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.confirmation-btn-info:hover {
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.confirmation-btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.confirmation-btn-success:hover {
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 640px) {
  .confirmation-dialog {
    padding: 24px;
    max-width: calc(100% - 24px);
  }

  .confirmation-header {
    margin-bottom: 16px;
  }

  .confirmation-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .confirmation-title {
    font-size: 18px;
  }

  .confirmation-message {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .confirmation-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .confirmation-btn {
    width: 100%;
    padding: 14px 24px;
  }
}
