/* Message Components CSS */
/* Extracted from inline styles in base-message-flash.html for CSP compliance */

/* Flash Message Overlay */
.flash-overlay {
  position: fixed;
  bottom: 1rem;
  /* CAMBIATO da top a bottom */
  right: 1rem;
  z-index: 1055;
  max-width: 350px;
}

.flash-overlay .alert {
  margin-top: 0.5rem;
}

/* Enhanced Flash Message Styling */
.flash-message {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  font-weight: 500;
  animation: slideInFromRight 0.5s ease-out;
}

.flash-message.alert-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.flash-message.alert-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.flash-message.alert-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  color: #212529;
}

.flash-message.alert-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  color: white;
}

/* Flash Message Animation */
@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Close Button Styling for Flash Messages */
.flash-message .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.flash-message .btn-close:hover {
  opacity: 1;
}

/* Mobile Responsive Flash Messages */
@media (max-width: 576px) {
  .flash-overlay {
    bottom: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }
  
  .flash-message {
    font-size: 0.9rem;
  }
}

/* Toast-style notifications (optional enhancement) */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 1rem 1.5rem;
  max-width: 400px;
  z-index: 1060;
  animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
  0% {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

.toast-notification.success {
  border-left: 5px solid #28a745;
}

.toast-notification.error {
  border-left: 5px solid #dc3545;
}

.toast-notification.warning {
  border-left: 5px solid #ffc107;
}

.toast-notification.info {
  border-left: 5px solid #17a2b8;
}