/* Modern Flash Messages */
.flash-message {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-left: 4px solid;
  animation: flashSlideIn 0.3s ease-out;
  transition: all 0.3s ease;
}

.flash-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1rem;
}

.flash-content {
  flex: 1;
  font-weight: 500;
  color: #334155;
  font-size: 0.9375rem;
}

.flash-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.flash-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #64748b;
}

/* Success */
.flash-success {
  border-left-color: #059669;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.flash-success .flash-icon {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.flash-success .flash-content {
  color: #065f46;
}

/* Danger */
.flash-danger {
  border-left-color: #dc2626;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.flash-danger .flash-icon {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.flash-danger .flash-content {
  color: #991b1b;
}

/* Warning */
.flash-warning {
  border-left-color: #d97706;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.flash-warning .flash-icon {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

.flash-warning .flash-content {
  color: #92400e;
}

/* Info */
.flash-info {
  border-left-color: #0d6efd;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.flash-info .flash-icon {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

.flash-info .flash-content {
  color: #1e40af;
}

/* Animation */
@keyframes flashSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 575.98px) {
  .flash-message {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }

  .flash-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.875rem;
  }

  .flash-content {
    font-size: 0.875rem;
  }
}
