
/* Profile dropdown - widen so "Tukar Kata Laluan" fits on one line */
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown {
    width: 240px;
    left: -150px;
}
.profile-dropdown li a span {
    white-space: nowrap;
}

.badge-jmm {
    background-color: #cfe2ff;
    color: #084298;
}

.badge-bukan-jmm {
    background-color: #fff3cd;
    color: #664d03;
}

.badge-aktif {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge-tidak-aktif {
    background-color: #f8d7da;
    color: #842029;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 6px;
    margin: 0 2px;
    font-size: 12px;
    line-height: 1;
}

.status-alert {
    display: none;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    border-left-width: 5px;
    padding: 14px 44px 14px 18px;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-align: left;
    animation: slideFadeIn 0.3s ease-out;
}

    .status-alert.show-alert {
        display: flex;
    }

    .status-alert .status-icon {
        font-size: 1.4rem;
        flex-shrink: 0;
    }

    .status-alert .status-text {
        margin: 0;
        font-weight: 500;
        line-height: 1.4;
    }

    .status-alert.alert-fail {
        background-color: #fdeeee;
        border-color: #f5c6cb;
        border-left-color: #dc3545;
    }

        .status-alert.alert-fail .status-icon,
        .status-alert.alert-fail .status-text {
            color: #b02a37;
        }

    .status-alert.alert-ok {
        background-color: #eaf7ee;
        border-color: #c3e6cb;
        border-left-color: #28a745;
    }

        .status-alert.alert-ok .status-icon,
        .status-alert.alert-ok .status-text {
            color: #1e7e34;
        }

    .status-alert .close-alert-btn {
        position: absolute;
        top: 8px;
        right: 10px;
        border: none;
        background: transparent;
        font-size: 1rem;
        line-height: 1;
        opacity: 0.5;
        transition: opacity 0.15s ease;
        text-decoration: none;
        padding: 4px;
    }

        .status-alert .close-alert-btn:hover {
            opacity: 1;
            text-decoration: none;
        }

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.val-summary-box {
    display: block;
    border-radius: 10px;
    border: 1px solid #f5c6cb;
    border-left: 5px solid #dc3545;
    background-color: #fdeeee;
    padding: 14px 18px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

    /* WebForms renders the HeaderText as a <span>, and each error as <li> inside a <ul> */
    .val-summary-box span {
        font-weight: 600;
        color: #b02a37 !important;
        display: block;
        margin-bottom: 6px;
    }

    .val-summary-box ul {
        margin: 0;
        padding-left: 18px;
        list-style: disc;
    }

        .val-summary-box ul li {
            color: #b02a37 !important;
            line-height: 1.6;
        }

/* Toast theme - green success */
.toast-success .toast-header {
    background-color: #eaf7ee;
    border-bottom-color: #c3e6cb;
    color: #1e7e34;
}
.toast-success {
    border-left: 4px solid #28a745;
}

/* Toast theme - red error */
.toast-error .toast-header {
    background-color: #fdeeee;
    border-bottom-color: #f5c6cb;
    color: #b02a37;
}
.toast-error {
    border-left: 4px solid #dc3545;
}