/* Toast & Custom Popup Notification System - BRIGHT FESTIVAL THEME */
:root {
  --toast-success: #10b981;
  --toast-error: #ef4444;
  --toast-warning: #f59e0b;
  --toast-info: #3b82f6;
  --toast-gold: #d97706;
  font-family: 'Be Vietnam Pro', sans-serif;
}

/* Toast Container */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 48px);
}

.custom-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.custom-toast.hide {
  transform: translateX(120%);
  opacity: 0;
}

.toast-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.toast-body {
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.toast-close:hover {
  color: #0f172a;
}

.toast-success { border-left: 5px solid var(--toast-success); }
.toast-error { border-left: 5px solid var(--toast-error); }
.toast-warning { border-left: 5px solid var(--toast-warning); }
.toast-info { border-left: 5px solid var(--toast-info); }
.toast-gold { border-left: 5px solid var(--toast-gold); }

/* Global Custom Modal / Popup Dialog */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.custom-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal-card {
  background: linear-gradient(145deg, #ffffff, #fffbeb);
  border: 2px solid #fde68a;
  border-radius: 28px;
  width: 100%;
  max-width: 520px;
  padding: 32px;
  color: #0f172a;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 35px rgba(245, 158, 11, 0.2);
  transform: scale(0.9) translateY(20px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.custom-modal-overlay.active .custom-modal-card {
  transform: scale(1) translateY(0);
}

.modal-header-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.icon-success { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.icon-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.icon-error { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.icon-info { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.icon-gold { background: linear-gradient(135deg, #fbbf24, #d97706); color: white; }

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  color: #0f172a;
}

.modal-message {
  font-size: 1rem;
  color: #475569;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
  font-weight: 500;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-btn {
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-btn-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.modal-btn-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-btn-confirm {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.3);
}
.modal-btn-confirm:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.modal-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}
.modal-btn-danger:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
