@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.3.1/css/all.min.css");

:root {
  --accent: #00d4e8;
  --surface: #0f1419;
  --text: #e8edf2;
  --muted: #7a8fa6;
  --signal-red: #e84855;
  --signal-amber: #f5a623;
  --border: rgba(0, 212, 232, 0.14);
  --surface-2: #0f1419;
  --text-primary: #e8edf2;
  --text-secondary: #7a8fa6;
  --text-success: #00d4e8;
  --text-danger: #e84855;
  --text-warning: #f5a623;
  --text-accent: #00d4e8;
}

.stbox-overlay {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 9999 !important;
  align-items: center !important;
  justify-content: center !important;
  animation: fadeIn 0.2s ease-out;
}

.stbox-overlay.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.stbox-box {
  background: var(--surface-2) !important;
  border-radius: 14px !important;
  border: 1px solid var(--border) !important;
  padding: 2rem !important;
  max-width: 420px !important;
  width: 90% !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 212, 232, 0.1) !important;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative !important;
}

.stbox-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.stbox-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.stbox-icon i {
  font-size: 20px;
}

.stbox-text {
  flex: 1;
}

.stbox-title {
  margin: 0 0 10px 0 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.01em !important;
}

.stbox-description {
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  line-height: 1.5 !important;
}

.stbox-close-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease !important;
}

.stbox-close-btn:hover {
  color: var(--text-primary);
  transform: rotate(90deg) !important;
}

.stbox-close-btn i {
  font-size: 20px;
}

.stbox.success .stbox-icon i {
  color: var(--text-success) !important;
}

.stbox.success .stbox-title {
  color: var(--text-success) !important;
}

.stbox.error .stbox-icon i {
  color: var(--text-danger) !important;
}

.stbox.error .stbox-title {
  color: var(--text-danger) !important;
}

.stbox.warning .stbox-icon i {
  color: var(--text-warning) !important;
}

.stbox.warning .stbox-title {
  color: var(--text-warning) !important;
}

.stbox.info .stbox-icon i {
  color: var(--text-accent) !important;
}

.stbox.info .stbox-title {
  color: var(--text-accent) !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(12px);
  }
}

.stbox-overlay.closing .stbox-box {
  animation: slideOut 0.2s ease-out;
}

.stbox-overlay.closing {
  animation: fadeIn 0.2s ease-out reverse;
}

.stbox.compact .stbox-content {
  gap: 12px;
}

.stbox.compact .stbox-title {
  font-size: 14px;
  margin: 0;
}

.stbox.compact .stbox-description {
  display: none;
}

.stbox-overlay.auto-close {
  animation: fadeIn 0.2s ease-out, fadeOut 0.2s ease-out 2.8s forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}