/* Custom Alert Notification Styles for CHAMKAR IT */
.custom-alert-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  width: calc(100vw - 48px);
  pointer-events: none;
}

.custom-alert-item {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 4px 10px rgba(0, 0, 0, 0.06);
  border-left: 5px solid #10b981;
  overflow: hidden;
  animation: alertSlideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

.custom-alert-item.alert-success {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.custom-alert-item.alert-error {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.custom-alert-item.alert-warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.custom-alert-item.alert-info {
  border-left-color: #3b82f6;
  background: #eff6ff;
}

.custom-alert-icon {
  font-size: 1.35rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.custom-alert-item.alert-success .custom-alert-icon {
  color: #10b981;
}

.custom-alert-item.alert-error .custom-alert-icon {
  color: #ef4444;
}

.custom-alert-item.alert-warning .custom-alert-icon {
  color: #f59e0b;
}

.custom-alert-item.alert-info .custom-alert-icon {
  color: #3b82f6;
}

.custom-alert-content {
  flex-grow: 1;
}

.custom-alert-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: #0f172a;
}

.custom-alert-message {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.4;
}

.custom-alert-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  line-height: 1;
  transition: color 0.2s ease;
}

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

.custom-alert-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  animation: alertProgress 4s linear forwards;
}

.custom-alert-item.alert-success .custom-alert-progress {
  background: #10b981;
}

.custom-alert-item.alert-error .custom-alert-progress {
  background: #ef4444;
}

.custom-alert-item.alert-warning .custom-alert-progress {
  background: #f59e0b;
}

.custom-alert-item.alert-info .custom-alert-progress {
  background: #3b82f6;
}

.custom-alert-item.hiding {
  animation: alertFadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes alertSlideInRight {
  0% {
    opacity: 0;
    transform: translateX(100%) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes alertFadeOut {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(100%) scale(0.92);
  }
}

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