/* Custom Confirmation Dialog Styles */
.custom-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.custom-dialog {
  background: linear-gradient(
    135deg,
    rgba(20, 20, 20, 0.98) 0%,
    rgba(30, 30, 30, 0.98) 100%
  );
  border: 2px solid rgba(229, 9, 20, 0.3);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(229, 9, 20, 0.4), 0 0 100px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.dialog-icon {
  text-align: center;
  font-size: 60px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.dialog-title {
  color: var(--accent-color);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.dialog-message {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 25px;
}

.dialog-warning-list {
  background: rgba(229, 9, 20, 0.1);
  border-left: 4px solid var(--accent-color);
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.dialog-warning-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dialog-warning-list li {
  color: #fff;
  padding: 8px 0;
  font-size: 0.95rem;
}

.dialog-warning-list li:before {
  content: "⚠️ ";
  margin-right: 10px;
}

.dialog-input {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  margin: 20px 0;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.dialog-input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.dialog-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.dialog-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.dialog-btn {
  flex: 1;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dialog-btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.dialog-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.dialog-btn-confirm {
  background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
  color: #fff;
  border: 2px solid var(--accent-color);
}

.dialog-btn-confirm:hover {
  background: linear-gradient(135deg, #ff0a16 0%, #e50914 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(229, 9, 20, 0.5);
}

.dialog-btn-confirm:active,
.dialog-btn-cancel:active {
  transform: translateY(0);
}

.dialog-email-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.95) 0%,
    rgba(180, 7, 16, 0.95) 100%
  );
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px 24px;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 9, 20, 0.4);
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.toast-exit {
  animation: slideOutRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.toast-icon {
  font-size: 28px;
  flex-shrink: 0;
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.toast-content {
  flex: 1;
}

.toast-title {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toast-message {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: rotate(90deg);
}

/* Progress bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0 0 10px 10px;
  animation: progressBar 3s linear forwards;
}

@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Toast action button */
.toast-action {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-action-btn {
  width: 100%;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toast-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast-action-btn:active {
  transform: translateY(0);
}
