/* ============================================================
   Notification Popup Styles
   ============================================================ */

/* Overlay */
.notif-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notif-popup-overlay.show {
  opacity: 1;
}

/* Modal */
.notif-popup-modal {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.notif-popup-overlay.show .notif-popup-modal {
  transform: scale(1) translateY(0);
}

/* Type variants */
.notif-popup-modal.info {
  border-top: 4px solid #3b82f6;
}

.notif-popup-modal.success {
  border-top: 4px solid #10b981;
}

.notif-popup-modal.warning {
  border-top: 4px solid #f59e0b;
}

.notif-popup-modal.error {
  border-top: 4px solid #ef4444;
}

/* Header */
.notif-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 0;
}

.notif-popup-icon {
  font-size: 40px;
  line-height: 1;
}

.notif-popup-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.notif-popup-close:hover {
  background: #e5e7eb;
  color: #111827;
}

/* Body */
.notif-popup-body {
  padding: 16px 20px;
}

.notif-popup-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
  line-height: 1.3;
}

.notif-popup-message {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 12px;
  line-height: 1.5;
}

.notif-popup-time {
  font-size: 12px;
  color: #9ca3af;
}

/* Footer */
.notif-popup-footer {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
}

.notif-popup-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.notif-popup-btn.primary {
  background: #0d6e3f;
  color: #fff;
}

.notif-popup-btn.primary:hover {
  background: #0a5c34;
}

.notif-popup-btn.secondary {
  background: #f3f4f6;
  color: #374151;
}

.notif-popup-btn.secondary:hover {
  background: #e5e7eb;
}

/* Progress bar */
.notif-popup-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #e5e7eb;
}

.notif-popup-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0d6e3f, #34d399);
  width: 100%;
}

/* Type-specific progress bar colors */
.notif-popup-modal.info .notif-popup-progress-bar {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.notif-popup-modal.success .notif-popup-progress-bar {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.notif-popup-modal.warning .notif-popup-progress-bar {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.notif-popup-modal.error .notif-popup-progress-bar {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Responsive */
@media (max-width: 480px) {
  .notif-popup-modal {
    width: 95%;
    max-width: none;
    margin: 16px;
  }
  
  .notif-popup-icon {
    font-size: 32px;
  }
  
  .notif-popup-title {
    font-size: 16px;
  }
  
  .notif-popup-message {
    font-size: 13px;
  }
}

/* Animation for queued notifications */
@keyframes notifSlideIn {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.notif-popup-overlay.show .notif-popup-modal {
  animation: notifSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
