/**
 * Notifications CSS
 * Modern notification system for Kermés Escolar 2025
 */

.notification-container {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: 100%;
  box-sizing: border-box;
}

.notification-container--top-left {
  top: 1rem;
  left: 1rem;
  right: auto;
  bottom: auto;
  align-items: flex-start;
}

.notification-container--top-center {
  top: 1rem;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  align-items: center;
}

.notification-container--top-right {
  top: 1rem;
  right: 1rem;
  left: auto;
  bottom: auto;
  align-items: flex-end;
}

.notification-container--bottom-left {
  bottom: 1rem;
  left: 1rem;
  right: auto;
  top: auto;
  align-items: flex-start;
}

.notification-container--bottom-center {
  bottom: 1rem;
  left: 50%;
  right: auto;
  top: auto;
  transform: translateX(-50%);
  align-items: center;
}

.notification-container--bottom-right {
  bottom: 1rem;
  right: 1rem;
  left: auto;
  top: auto;
  align-items: flex-end;
}

.notification {
  display: flex;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
  padding: 1rem;
  width: 100%;
  max-width: 24rem;
  pointer-events: auto;
  position: relative;
  transition: all 0.3s ease;
  animation: notification-in 0.3s ease-out forwards;
  overflow: hidden;
}

.notification--closing {
  animation: notification-out 0.3s ease-in forwards;
}

.notification--info {
  border-left: 4px solid #3498db;
}

.notification--success {
  border-left: 4px solid #2ecc71;
}

.notification--warning {
  border-left: 4px solid #f39c12;
}

.notification--error {
  border-left: 4px solid #e74c3c;
}

.notification__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
}

.notification__icon--info {
  color: #3498db;
}

.notification__icon--success {
  color: #2ecc71;
}

.notification__icon--warning {
  color: #f39c12;
}

.notification__icon--error {
  color: #e74c3c;
}

.notification__icon--construction {
  color: #f39c12;
}

.notification__content {
  flex: 1;
}

.notification__title {
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.notification__message {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #555;
}

.notification__close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0;
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  transition: color 0.2s;
}

.notification__close:hover {
  color: #333;
}

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

.notification__progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
}

.notification__progress-bar--info {
  background-color: #3498db;
}

.notification__progress-bar--success {
  background-color: #2ecc71;
}

.notification__progress-bar--warning {
  background-color: #f39c12;
}

.notification__progress-bar--error {
  background-color: #e74c3c;
}

@keyframes notification-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notification-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}