

/* ======= techz-render alert ======= */

/* RESET */
.tchzr-_-alert, .tchzr-_-alert * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  width: auto;
}

/* ROOT CONTAINER */
.tchzr-_-alert {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  min-width: 280px;
  max-width: 90vw;
  padding: 1.4rem 1.8rem;
  border-radius: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  z-index: 9999;
  overflow: hidden;

  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(30, 30, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);

  transform: translateY(30px) scale(0.95);
  animation: alertFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  border-left: 6px solid transparent;
}

@keyframes alertFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.03);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* THEMES */
.tchzr-_-alert-dark {
  background-color: rgba(35, 35, 35, 0.7);
  color: #f9f9f9;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tchzr-_-alert-light {
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* VARIANTS */
.tchzr-_-alert.tchzr-a-info            { border-left-color: #2196f3; box-shadow: 0 0 12px rgba(33,150,243,0.4); }
.tchzr-_-alert-dark.tchzr-a-info       { border-left-color: #42a5f5; box-shadow: 0 0 12px rgba(66,165,245,0.35); }
.tchzr-_-alert-light.tchzr-a-info      { border-left-color: #1976d2; box-shadow: 0 0 12px rgba(25,118,210,0.3); }

.tchzr-_-alert.tchzr-a-success         { border-left-color: #4caf50; box-shadow: 0 0 12px rgba(76,175,80,0.35); }
.tchzr-_-alert-dark.tchzr-a-success    { border-left-color: #66bb6a; box-shadow: 0 0 12px rgba(102,187,106,0.35); }
.tchzr-_-alert-light.tchzr-a-success   { border-left-color: #388e3c; box-shadow: 0 0 12px rgba(56,142,60,0.3); }

.tchzr-_-alert.tchzr-a-warning         { border-left-color: #ff9800; box-shadow: 0 0 12px rgba(255,152,0,0.35); }
.tchzr-_-alert-dark.tchzr-a-warning    { border-left-color: #ffa726; box-shadow: 0 0 12px rgba(255,167,38,0.35); }
.tchzr-_-alert-light.tchzr-a-warning   { border-left-color: #f57c00; box-shadow: 0 0 12px rgba(245,124,0,0.3); }

.tchzr-_-alert.tchzr-a-error           { border-left-color: #f44336; box-shadow: 0 0 12px rgba(244,67,54,0.35); }
.tchzr-_-alert-dark.tchzr-a-error      { border-left-color: #ef5350; box-shadow: 0 0 12px rgba(239,83,80,0.35); }
.tchzr-_-alert-light.tchzr-a-error     { border-left-color: #d32f2f; box-shadow: 0 0 12px rgba(211,47,47,0.3); }

/* MESSAGE */
.tchzr-alert-msg {
  flex: 1;
  line-height: 1.7;
  padding: 0.5rem 0;
  word-break: break-word;
}

/* CLOSE BUTTON */
.tchzr-_-alert .tchzr-_-close,
.tchzr-_-close-light.tchzr-_-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  font-weight: bold;
  color: inherit;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
  opacity: 0.5;
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  transition: all 0.25s ease;
}
.tchzr-_-alert .tchzr-_-close:hover {
  opacity: 1;
  transform: rotate(90deg) scale(1.2);
}

/* PROGRESS BAR BASE */
.tchzr-alert-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  border-radius: 0 0 6px 6px;
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left;
  animation: alertProgress 5s linear forwards;
}

/* PROGRESS ANIMATION */
@keyframes alertProgress {
  to { transform: scaleX(1); }
}

/* PROGRESS COLORS PER VARIANT */
.tchzr-_-alert.tchzr-a-info    .tchzr-alert-progress { background-color: #1976d2; }
.tchzr-_-alert.tchzr-a-success .tchzr-alert-progress { background-color: #388e3c; }
.tchzr-_-alert.tchzr-a-warning .tchzr-alert-progress { background-color: #f57c00; }
.tchzr-_-alert.tchzr-a-error   .tchzr-alert-progress { background-color: #d32f2f; }

.tchzr-_-alert-light.tchzr-a-info    .tchzr-alert-progress { background-color: #64b5f6; }
.tchzr-_-alert-light.tchzr-a-success .tchzr-alert-progress { background-color: #81c784; }
.tchzr-_-alert-light.tchzr-a-warning .tchzr-alert-progress { background-color: #ffb74d; }
.tchzr-_-alert-light.tchzr-a-error   .tchzr-alert-progress { background-color: #e57373; }

.tchzr-_-alert-dark.tchzr-a-info    .tchzr-alert-progress { background-color: #90caf9; }
.tchzr-_-alert-dark.tchzr-a-success .tchzr-alert-progress { background-color: #a5d6a7; }
.tchzr-_-alert-dark.tchzr-a-warning .tchzr-alert-progress { background-color: #ffcc80; }
.tchzr-_-alert-dark.tchzr-a-error   .tchzr-alert-progress { background-color: #ef9a9a; }
