// Bootstrap vars
$primary: #7508b9;
$light-primary: #e0d4f7;
$success: #45bc1a;
$light: #ffffff;
$info: #067bff;
$border-radius-lg: 1rem;
$border-color: #e2e8f0;
$input-btn-padding-x: 1.6rem;
$input-btn-padding-y: 0.7rem;
$input-btn-focus-box-shadow: none;
$input-border-color: #e2e8f0;
$input-placeholder-color: #cbd5e1;
$font-family-base: "Lexend", sans-serif;
$border-radius: 0.6rem;
$nav-link-padding-y: 0.7rem;
$nav-link-padding-x: 1.4rem;
$font-weight-bold: 600;

$container-max-widths: (
    sm: 98%,
    md: 98%,
    lg: 1120px,
    xl: 1380px,
    xxl: 1440px,
);

$position-values: (
    0: 0,
    1: 1%,
    2: 2%,
    3: 3%,
    4: 4%,
    5: 5%,
    50: 50%,
    100: 100%,
);

@import "bootstrap/scss/bootstrap";
@import "swiper/swiper-bundle.css";
@import "remixicon/fonts/remixicon.css";
@import "bootstrap-icons/font/bootstrap-icons.css";
@import "vue-awesome-paginate/dist/style.css";
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap");

/* Scroll bar */
::-webkit-scrollbar {
    height: 7px;
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #ddd;
}

::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: $primary;
}

/* Selection */
::selection {
    background-color: $primary;
    color: #fff;
}

:root {
    scroll-behavior: smooth;
    --light-primary: #f2e5ff;
    --bg-primary: #7508b9;
}

// Customize Swiper
.swiper-slide {
    height: auto;
}

.swiper-button-next {
    background-color: white;
    padding: 10px 23px;
    border-radius: 50%;
    box-shadow: 0px 4px 16px 3px rgba(136, 136, 136, 0.16);
    color: #333;

    &::after {
        font-size: 1rem;
    }
}

.swiper-button-prev {
    display: none;
}

.swiper-pagination-bullets {
    .swiper-pagination-bullet {
        width: 15px;
        height: 15px;
        background-color: transparent;
        border: 1px solid #777;
    }

    .swiper-pagination-bullet-active {
        background-color: #fff;
        width: 30px;
        border-color: #eee;
        border-radius: 50px;
        position: relative;

        &::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            height: 60%;
            width: 80%;
            transform: translate(-50%, -50%);
            background-color: $primary;
            border-radius: 50px;
        }
    }
}

// Customize Vue Awesome Paginate
.paginate-buttons {
    background-color: #fff !important;

    &.number-buttons {
        font-weight: bold;
    }

    &.active-page {
        background-color: $primary !important;
    }
}

// Custom utility
.theme-shadow {
    box-shadow: 0px 4px 16px 0px rgba(171, 190, 209, 0.16);
}

.text-hover {
    color: #000;
    transition: color 0.3s ease;
    cursor: pointer;

    &:hover {
        color: $primary;
    }
}

.text-blue {
    color: #2563eb;
}

.text-black {
    color: #2a3335;
}

.bg-light-purple {
    background-color: #f3e9fe;
}

.bg-light-primary {
    background-color: #f3e9fe;
}

.cursor-pointer {
    cursor: pointer;
}

.bg-lightgreen {
    background-color: #e5fddb;
}

.search-input:focus {
    box-shadow: none;
}

.pagination-container {
    display: flex;
    column-gap: 10px;
}

.paginate-buttons {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
    background-color: rgb(242, 242, 242);
    border: 1px solid rgb(217, 217, 217);
    color: black;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.paginate-buttons:hover {
    background-color: #d8d8d8;
}

.active-page {
    background-color: #9e4aed;
    border: 1px solid #9e4aed;
    color: white;
}

.active-page:hover {
    background-color: #2988c8;
}

.payment-logo {
    width: 90px;
    height: 94px;
    padding: 16px 0;
}

.payment-logo img {
    width: 100%;
}

.btn-outline-white {
    border: 1px solid #ffffff;
    color: #ffffff;
    transition: all 0.3s ease-in-out;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: #000000;
}

.text-light-primary {
    color: $light-primary !important;
}

.dropdown .btn {
    color: #1e1e2f;
    font-weight: 500;
    font-size: 14px;
    border: none;
    border: 2px solid var(--light-primary);
    transition: all 0.3s ease;
    width: 55px;
    height: 55px;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

}

.dropdown .btn img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
}

/* Dropdown menu */
.dropdown-menu {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: none;
    transition: all 0.3s ease;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
}

/* Dropdown items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #1e1e2f;
    padding: 10px 16px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.dropdown-item:hover {
    background: var(--light-primary);
    /* optional accent color */
}

/* Logout item */
.dropdown-item.text-danger {
    color: #e74c3c;
}

.dropdown-item.text-danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* Divider */
.dropdown-divider {
    height: 1px;
    margin: 4px 0;
    background: #e0e0e0;
    border: none;
}

/* Chevron icon */
.dropdown .fa-chevron-down {
    transition: transform 0.3s ease;
}

.dropdown.show .fa-chevron-down {
    transform: rotate(180deg);
}
