/* Home Twelve — custom toastr (dark card, white text & borders). Load instead of toastr.min.css */

#toast-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#toast-container.toast-top-right {
    top: 24px;
    right: 24px;
}

#toast-container > div,
#toast-container > div.toast-success,
#toast-container > div.toast-error,
#toast-container > div.toast-warning,
#toast-container > div.toast-info {
    pointer-events: auto;
    position: relative;
    min-width: 300px;
    max-width: 420px;
    padding: 16px 40px 16px 24px;
    border-radius: 12px;
    background-color: #0b162c !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    color: #ffffff !important;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow: hidden;
    animation: he12ToastIn 0.35s ease;
    opacity: 1 !important;
}

#toast-container > div:before {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    content: '';
}

#toast-container > .toast-success:before {
    background: #38b773;
}

#toast-container > .toast-error:before {
    background: #ef4444;
}

#toast-container > .toast-warning:before {
    background: #f59e0b;
}

#toast-container > .toast-info:before {
    background: #3b82f6;
}

#toast-container .toast-title,
#toast-container .toast-message,
#toast-container .toast-message a,
#toast-container .toast-message label {
    color: #ffffff !important;
}

#toast-container .toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

#toast-container .toast-message {
    font-size: 0.85rem;
    opacity: 0.92;
}

#toast-container .toast-close-button {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.25s;
    text-shadow: none !important;
    opacity: 1 !important;
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
}

#toast-container > div:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    cursor: default;
}

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

@media (max-width: 480px) {
    #toast-container.toast-top-right {
        top: 16px;
        right: 16px;
        left: 16px;
    }

    #toast-container > div {
        min-width: 0;
        width: 100%;
        max-width: none;
    }
}
