@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@800&display=swap");

.alert-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  margin: 0px auto;
  padding: 0px auto;
  left: 0;
  top: 0;
  overflow: hidden;
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 999999;
}

@keyframes open-frame {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.alert-frame {
  background: rgba(17, 24, 39, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(168, 85, 247, 0.2) !important;
  min-height: 400px;
  width: 350px;
  animation: open-frame 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.alert-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(45deg, #a855f7, #ec4899);
  animation: gradientShift 3s ease infinite;
}

.alert-header {
  display: flex;
  flex-direction: row;
  height: 180px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  position: relative;
  overflow: hidden;
}

.alert-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
}

.alert-img {
  height: 90px;
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
}

.alert-close {
  width: 35px;
  height: 35px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Dosis", sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  line-height: 35px;
  transition: all 0.3s ease;
  margin-left: auto;
  margin-right: 15px;
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.alert-close:hover {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.3);
  transform: scale(1.1);
}

.alert-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.alert-title {
  font-size: 22px !important;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #a855f7, #ec4899) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.alert-message {
  font-size: 15px !important;
  color: #e5e7eb !important;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
}

.alert-button {
  min-width: 160px;
  height: 45px;
  border-radius: 12px;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0 20px;
  background: linear-gradient(45deg, #a855f7, #ec4899) !important;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4) !important;
}

.alert-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.6) !important;
}

.alert-button:focus {
  outline: none;
  transform: translateY(0);
}

.question-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
}

.confirm-button {
  min-width: 120px;
  height: 45px;
  border-radius: 12px;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0 20px;
  background: linear-gradient(45deg, #a855f7, #ec4899) !important;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4) !important;
}

.confirm-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.6) !important;
}

.cancel-button {
  min-width: 120px;
  height: 45px;
  border-radius: 12px;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #e5e7eb;
  border: 1px solid rgba(168, 85, 247, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.cancel-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-2px);
}

@keyframes open-toast {
  0% {
    transform: translateX(400px) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

.toast-container {
  top: 20px;
  right: 20px;
  overflow: hidden;
  position: fixed;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(168, 85, 247, 0.2);
  animation: open-toast 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 999999;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.toast-frame {
  padding: 20px 25px;
  display: flex;
  min-width: 300px;
  height: 80px;
  border-radius: 16px;
  align-items: center;
  background: rgba(17, 24, 39, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  position: relative;
  overflow: hidden;
}

.toast-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(45deg, #a855f7, #ec4899);
}

.toast-img {
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3));
}

.toast-message {
  font-size: 14px !important;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  color: #e5e7eb !important;
  margin-left: 15px;
}

.toast-close {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Dosis", sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 25px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.toast-close:hover {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.3);
  transform: scale(1.1);
}

@keyframes timer {
  0% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

.toast-timer {
  width: 100%;
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 0;
  animation: timer 5s linear forwards;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.error-bg::before {
  background: linear-gradient(45deg, #ef4444, #f59e0b) !important;
}

.success-bg::before {
  background: linear-gradient(45deg, #a855f7, #ec4899) !important;
}

.warning-bg::before {
  background: linear-gradient(45deg, #f59e0b, #eab308) !important;
}

.question-bg::before {
  background: linear-gradient(45deg, #3b82f6, #06b6d4) !important;
}

.info-bg::before {
  background: linear-gradient(45deg, #06b6d4, #a855f7) !important;
}

.error-timer {
  background: linear-gradient(45deg, #ef4444, #f59e0b) !important;
}

.success-timer {
  background: linear-gradient(45deg, #a855f7, #ec4899) !important;
}

.warning-timer {
  background: linear-gradient(45deg, #f59e0b, #eab308) !important;
}

.info-timer {
  background: linear-gradient(45deg, #06b6d4, #a855f7) !important;
}

.question-timer {
  background: linear-gradient(45deg, #3b82f6, #06b6d4) !important;
}