/* assets/admin-toast.css */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    color: #1a1a1a;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(40px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
    min-width: 300px;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ddd;
}

.toast.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.toast.toast-success::before {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
}

.toast.toast-success .toast-icon {
    color: #2ecc71;
}

.toast.toast-error::before {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
}

.toast.toast-error .toast-icon {
    color: #e74c3c;
}

.toast.toast-info::before {
    background: linear-gradient(to bottom, #3498db, #2980b9);
}

.toast.toast-info .toast-icon {
    color: #3498db;
}

.toast.toast-loading::before {
    background: linear-gradient(to bottom, #f1c40f, #f39c12);
}

.toast.toast-loading .toast-icon {
    color: #f1c40f;
    animation: spin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 18px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 10px;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}