﻿/* =========================
   SIDEBAR WRAPPER
========================= */

.rbt-sidebar-widget-wrapper {
    --widget-gap: 25px;
    display: flex;
    flex-direction: column;
    gap: var(--widget-gap);
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

    .rbt-sidebar-widget-wrapper .rbt-single-widget {
        background: #fff;
        padding: 0;
        overflow: hidden;
        box-shadow: 0 6px 18px rgba(32, 40, 60, 0.04);
    }

.rbt-single-widget {
    border-radius: 5px 5px 0 0;
}


/* =========================
   WIDGET HEADER
========================= */

.rbt-sidebar-widget-wrapper .rbt-widget-title,
.rbt-sidebar-widget-wrapper .filter-header {
    display: block;
    background: #3431C6;
    color: #fff !important;
    padding: 12px 16px;
    border-radius: 5px 5px 0 0 !important;
    font-size: 14px;
    font-weight: 600;
}

.rbt-single-widget .rbt-widget-title {
    margin-bottom: 0 !important;
}


/* =========================
   WIDGET INNER
========================= */

.rbt-sidebar-widget-wrapper .rbt-single-widget .inner {
    padding: 12px 14px;
}


/* =========================
   SEARCH BOX
========================= */

.rbt-search-style-1 {
    --search-height: 44px;
    --search-icon-size: 17px;
    --search-icon-left: 12px;
    --search-icon-gap: 12px;
    position: relative;
}

    .rbt-search-style-1 input#searchCourse {
        width: 100%;
        height: var(--search-height);
        line-height: var(--search-height);
        padding: 0 12px 0 calc( var(--search-icon-size) + var(--search-icon-left) + var(--search-icon-gap) );
        border: 1px solid #e6e9ee;
        border-radius: 5px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .rbt-search-style-1 .search-icon {
        position: absolute;
        top: 50%;
        left: var(--search-icon-left);
        transform: translateY(-50%);
        color: #3431C6;
        pointer-events: none;
    }

        .rbt-search-style-1 .search-icon.icon {
            width: var(--search-icon-size);
            height: var(--search-icon-size);
            background-size: contain;
        }


/* =========================
   SIDEBAR LIST WRAPPER
========================= */

.rbt-sidebar-list-wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
    border-right: 1px solid #e9ecef;
}

    .rbt-sidebar-list-wrapper li {
        margin: 0;
    }

.rbt-single-widget ul.rbt-sidebar-list-wrapper li + li {
    margin-top: 0 !important;
}


/* =========================
   SIDEBAR CHECK ITEM
========================= */

.rbt-sidebar-list-wrapper .rbt-check-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    border-left: 1px solid #e9ecef;
    border-radius: 0;
    box-sizing: border-box;
    transition: background 0.12s ease;
}

    .rbt-sidebar-list-wrapper .rbt-check-group:hover {
        background: #fbfbfe;
    }

    .rbt-sidebar-list-wrapper .rbt-check-group:last-child {
        border-bottom: 1px solid #e9ecef;
    }


/* =========================
   CHECKBOX / RADIO BASE
========================= */

.rbt-check-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #3b30d6;
}

.rbt-check-group label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #222;
    font-size: 14px;
}

.rbt-single-widget input[type="checkbox"] ~ label,
.rbt-single-widget input[type="radio"] ~ label {
    padding-left: 30px !important;
}

input[type="checkbox"] ~ label::before {
    width: 16px !important;
    height: 16px !important;
    border: 1px solid #A0AEC0 !important;
    border-radius: 3px !important;
}

input[type="radio"] ~ label::before {
    width: 16px !important;
    height: 16px !important;
    border: 1px solid #A0AEC0 !important;
    border-radius: 50% !important;
}


input[type="checkbox"] ~ label::after,
input[type="radio"] ~ label::after {
    top: 10px !important;
    left: 3px !important;
}

input[type="radio"] ~ label::after {
    left: 4px !important;
}


/* =========================
   COUNT BADGE
========================= */

.rbt-lable.count,
.rbt-lable.count .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    padding: 0 8px;
    background: #FAEBEB;
    color: #ff6b81;
    border: 1px solid rgba(255, 107, 129, 0.12);
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
}


/* =========================
   SHOW MORE BUTTON
========================= */

.rbt-show-more-btn {
    display: block;
    padding: 10px 14px;
    margin-top: 0 !important;
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    color: #3b30d6;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

    .rbt-show-more-btn::after {
        right: 15px !important;
    }
