/* Popup Notification System for SkyJourney */

.popup-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 350px;
}

.popup {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
  overflow: hidden;
  animation: slideIn 0.5s ease-out forwards;
  display: flex;
  position: relative;
}

.popup.success {
  border-left: 4px solid #28a745;
}

.popup.error {
  border-left: 4px solid #dc3545;
}

.popup.info {
  border-left: 4px solid #0066FF;
}

.popup.warning {
  border-left: 4px solid #fd7e14;
}

.popup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  font-size: 1.5rem;
}

.popup.success .popup-icon {
  color: #28a745;
}

.popup.error .popup-icon {
  color: #dc3545;
}

.popup.info .popup-icon {
  color: #0066FF;
}

.popup.warning .popup-icon {
  color: #fd7e14;
}

.popup-content {
  flex: 1;
  padding: 15px 15px 15px 0;
  color: #333;
}

.popup-title {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 1rem;
}

.popup-message {
  font-size: 0.9rem;
  margin: 0;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  color: #333;
}

.popup-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: rgba(0, 0, 0, 0.1);
  width: 100%;
}

.popup-progress-bar {
  height: 100%;
  width: 100%;
  animation: progress 5s linear forwards;
}

.popup.success .popup-progress-bar {
  background-color: #28a745;
}

.popup.error .popup-progress-bar {
  background-color: #dc3545;
}

.popup.info .popup-progress-bar {
  background-color: #0066FF;
}

.popup.warning .popup-progress-bar {
  background-color: #fd7e14;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes progress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

.popup.hide {
  animation: slideOut 0.5s ease-in forwards;
}
