/* Toast Container */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Toast Base */
.toast {
  min-width: 300px;
  max-width: 380px;
  padding: 16px 18px;
  border-radius: 14px;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  animation: slideIn 0.35s ease, fadeOut 0.35s ease 3.2s forwards;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Icon Area */
.toast-icon {
  font-family: "Material Icons";
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
}

/* Content */
.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.toast-description {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.9;
}

/* Close Button */
.toast-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Types */
.toast-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.toast-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.toast-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}


/* DISABLED BUTTON */

.btn-disabled {
  pointer-events: none;
  opacity: 0.65;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.btn-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}
