/* =========================================================
   LMS GLOBAL TOAST
   WhatsApp-style / Mobile First
   ========================================================= */

.lms-toast-container {
    position: fixed;
    left: 50%;
    bottom: 78px;
    transform: translateX(-50%);

    width: calc(100% - 24px);
    max-width: 390px;

    display: flex;
    flex-direction: column;
    gap: 8px;

    z-index: 99999;

    pointer-events: none;
}


/* =========================================================
   TOAST
   ========================================================= */

.lms-toast {
    width: 100%;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 11px 13px;

    background: #ffffff;
    color: #222;

    border-radius: 12px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, .18);

    border-left: 4px solid #075e54;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px) scale(.98);

    transition:
        opacity .20s ease,
        transform .20s ease,
        visibility .20s ease;

    pointer-events: auto;
}


/* Toast aktif */

.lms-toast.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0) scale(1);
}


/* =========================================================
   ICON
   ========================================================= */

.lms-toast-icon {
    width: 32px;
    height: 32px;

    min-width: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 15px;
    font-weight: 700;

    color: #ffffff;
}


/* Success */

.lms-toast.success {
    border-left-color: #25d366;
}

.lms-toast.success .lms-toast-icon {
    background: #25d366;
}


/* Error */

.lms-toast.error {
    border-left-color: #dc3545;
}

.lms-toast.error .lms-toast-icon {
    background: #dc3545;
}


/* Warning */

.lms-toast.warning {
    border-left-color: #f0ad00;
}

.lms-toast.warning .lms-toast-icon {
    background: #f0ad00;
}


/* Info */

.lms-toast.info {
    border-left-color: #0d6efd;
}

.lms-toast.info .lms-toast-icon {
    background: #0d6efd;
}


/* =========================================================
   CONTENT
   ========================================================= */

.lms-toast-content {
    min-width: 0;
    flex: 1;
}


.lms-toast-title {
    font-size: 13px;
    font-weight: 700;

    line-height: 1.3;

    color: #222;
}


.lms-toast-message {
    margin-top: 2px;

    font-size: 11px;
    line-height: 1.4;

    color: #666;

    word-break: break-word;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.lms-toast-close {
    width: 25px;
    height: 25px;

    border: 0;
    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #888;

    font-size: 17px;

    cursor: pointer;

    padding: 0;

    flex-shrink: 0;
}

.lms-toast-close:hover {
    color: #333;
}


/* =========================================================
   PROGRESS BAR
   ========================================================= */

.lms-toast-progress {
    position: absolute;

    left: 0;
    bottom: 0;

    height: 2px;

    width: 100%;

    background: rgba(0, 0, 0, .08);

    overflow: hidden;

    border-radius: 0 0 12px 12px;
}


.lms-toast-progress-bar {
    height: 100%;
    width: 100%;

    transform-origin: left;

    background: #075e54;
}


/* warna progress berdasarkan tipe */

.lms-toast.success .lms-toast-progress-bar {
    background: #25d366;
}

.lms-toast.error .lms-toast-progress-bar {
    background: #dc3545;
}

.lms-toast.warning .lms-toast-progress-bar {
    background: #f0ad00;
}

.lms-toast.info .lms-toast-progress-bar {
    background: #0d6efd;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 600px) {

    .lms-toast-container {
        bottom: 25px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .lms-toast-container {
        bottom: 72px;

        width: calc(100% - 20px);
    }

    .lms-toast {
        padding: 10px 12px;
    }

}