/*
 * 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.
 */

/* Toast Styles */
.toast {
  background: #ffffff;
  border-radius: 8px;
  box-shadow:
    0px 20px 25px -5px rgba(0, 0, 0, 0.1),
    0px 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: space-between;
  padding: 16px;
  width: 100%;
  max-width: 384px;
  border: 1px solid #e5e7eb;
}

/* Dark mode styles - only use .dark class, not media query */
.dark .toast {
  background: #1f2937;
  border-color: #374151;
}

.toast section:has(> header > svg) p {
  margin-left: 28px;
}

.toast section header {
  align-items: center;
  display: flex;
  flex-grow: 1;
  gap: 8px;
}

/* Icon colors for different toast types */
.toast .icon-success {
  fill: #10b981; /* Green for success */
}

.toast .icon-alert {
  fill: #ef4444; /* Red for errors/alerts */
}

.toast .icon-notice {
  fill: #3b82f6; /* Blue for notices */
}

.toast .icon-default {
  fill: #6b7280; /* Gray for default */
}

.toast section header h2 {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.dark .toast section header h2 {
  color: #f3f4f6;
}

.toast p {
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.dark .toast p {
  color: #9ca3af;
}

.toast div {
  align-items: flex-start;
  display: flex;
  gap: 16px;
}

.toast div a {
  color: #3b82f6;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.toast div a:hover {
  color: #2563eb;
}

.dark .toast div a {
  color: #60a5fa;
}

.dark .toast div a:hover {
  color: #93bbfc;
}

.toast button svg path {
  fill: #9ca3af;
}

.toast button:hover svg path {
  fill: #6b7280;
}

.dark .toast button svg path {
  fill: #6b7280;
}

.dark .toast button:hover svg path {
  fill: #9ca3af;
}

#toasts {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: fixed;
  right: 16px;
  top: 48px;
  z-index: 30;
  width: 100%;
  max-width: 384px;
}

#toasts > * + * {
  margin-top: 16px;
}

@media (max-width:640px) {
  #toasts {
    left: 50%;
    transform: translateX(-50%);
  }
}
