/* Alert Toast Component */
.alert-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(250, 249, 245, 0.9);
    /* Matches --bg-color */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    /* Softer shadow for light theme */
    z-index: 900;
    max-width: 400px;
    width: 90%;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.alert-interactive-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.alert-interactive-area:hover {
    transform: translateX(4px);
}

.alert-icon-wrapper {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

.alert-content {
    flex: 1;
}

.alert-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ea580c;
    /* Matches brand accent */
    background: rgba(234, 88, 12, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.alert-title {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.alert-message {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

.alert-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .alert-toast {
        bottom: 1.5rem;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        width: calc(100% - 2rem);
    }

    .alert-toast.is-visible {
        transform: translateX(-50%) translateY(0);
    }
}

/* Icon Glow effect */
.alert-icon-wrapper i {
    animation: icon-pulse 2s infinite ease-in-out;
}

@keyframes icon-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
    }
}