/* AUREA Toast Alerts System */

#alertContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    width: 380px;
    max-width: calc(100vw - 40px);
    pointer-events: none;
}

.alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 14px 16px;
    border-radius: 8px;
    border: 1px solid;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    margin-bottom: 10px;
    animation: slideInRight 0.3s ease-out;
}

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

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.alert.closing {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* SUCCESS */
.alert-success {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.alert-success .alert-icon {
    color: #22c55e;
}

/* ERROR */
.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

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

/* WARNING */
.alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.alert-warning .alert-icon {
    color: #eab308;
}

/* INFO */
.alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.alert-info .alert-icon {
    color: #3b82f6;
}

.alert-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
}

.alert-message {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

.alert-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 640px) {
    #alertContainer {
        left: 12px;
        right: 12px;
        width: auto;
        top: 12px;
    }
}