/* toast.css */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: calc(100vw - 40px);
}

.toast {
    min-width: 250px;
    max-width: 100%;
    color: white;
    padding: 12px 18px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 14px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s ease;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* animation */
.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* colors */
.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

.toast.info {
    background: #0d6efd;
}

.toast.warning {
    background: #f59e0b;
}

/* ===== MOBILE (600px) ===== */
@media (max-width: 600px) {
    #toast-container {
        top: 14px;
        right: 14px;
        left: 14px;
        max-width: none;
    }

    .toast {
        min-width: auto;
        width: 100%;
        padding: 11px 14px;
        font-size: 13px;
        border-radius: 7px;
    }
}

/* ===== SMALL MOBILE (400px) ===== */
@media (max-width: 400px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        padding: 10px 12px;
        font-size: 12.5px;
        margin-bottom: 8px;
    }
}
