/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Flash Messages */
.flash-message {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  max-width: 400px;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: slideInRight 0.3s ease-out;
  transition: all 0.3s ease;
}

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

.flash-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flash-icon {
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
  line-height: 1;
}

.flash-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
}

/* Success message (notice) */
.flash-notice {
  background: rgba(209, 250, 229, 0.95);
  border-color: rgba(167, 243, 208, 0.8);
  color: #065f46;
}

.flash-notice .flash-icon {
  color: #059669;
}

/* Error/Alert message */
.flash-alert {
  background: rgba(254, 242, 242, 0.95);
  border-color: rgba(254, 202, 202, 0.8);
  color: #991b1b;
}

.flash-alert .flash-icon {
  color: #dc2626;
}

/* Responsive */
@media (max-width: 640px) {
  .flash-message {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
    min-width: auto;
  }
}
