/* Premium Global Toast Notification System */

#al-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.al-toast {
    background: #ffffff; /* Solid white */
    border: 1px solid var(--ds-border, #E5E7EB);
    border-radius: 8px; /* Moderate radius */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Very soft shadow */
    width: 340px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), opacity 0.4s ease;
    opacity: 0;
    will-change: transform, opacity;
}

.al-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Icon container */
.al-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* Colors for semantic types */
.al-toast-success .al-toast-icon { color: #10B981; }
.al-toast-error .al-toast-icon { color: #EF4444; }
.al-toast-warning .al-toast-icon { color: #F59E0B; }
.al-toast-info .al-toast-icon { color: #3B82F6; }

/* Content block */
.al-toast-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.al-toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-text, #111827);
    line-height: 1.4;
    font-family: inherit;
}

.al-toast-message {
    font-size: 13px;
    color: var(--ds-text-secondary, #4B5563);
    line-height: 1.5;
    font-family: inherit;
}

/* Close button */
.al-toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--ds-text-tertiary, #9CA3AF);
    cursor: pointer;
    padding: 2px;
    margin: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    border-radius: 4px;
}

.al-toast-close:hover {
    color: var(--ds-text, #111827);
    background: var(--ds-hover, #F3F4F6);
}

/* Dark mode overrides (if the site uses a dark theme variant) */
[data-theme="dark"] .al-toast {
    background: #1F2937;
    border-color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .al-toast-title { color: #F9FAFB; }
[data-theme="dark"] .al-toast-message { color: #D1D5DB; }
[data-theme="dark"] .al-toast-close:hover { background: #374151; color: #F9FAFB; }
