@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@100;200;300;400;500;600;700;800&display=swap');

/* 
    Font Size Tips:
    ============================================
    font-size: 100%; in most browsers, this 100% = 16px = 1rem
    font-size: 112.5%; In most browsers this 112.5% = 18px = 1.125rem

    //Another option to set font-size-
    //In order to seamlessly convert pixels to rem, we can set the root sizing to 62.5%. That means 1rem = 10px:
    font-size: 62.5%;  (62.5/100) * 16px = 10px  

*/

:root {
    --fallback-font: sans-serif;
    --font-family-english: 'Inter', var(--fallback-font);
    --font-family-bangla: 'Anek Bangla', var(--fallback-font);
}


/* Applicable for all childs */
[lang="en"] * {
    font-family: var(--font-family-english);
}

[lang="bn"] * {
    font-family: var(--font-family-bangla);
}

body {
    font-family: var(--font-family-english);
}

/* Specific elements (override)*/
[lang="en"] {
    font-family: var(--font-family-english);
}

[lang="bn"] {
    font-family: var(--font-family-bangla);
}


.theme-toggle {
    background: var(--quaternary-surface-bg);
    border: 1px solid var(--primary-surface-border);
    border-radius: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    margin-left: 15px;
    display: inline-block;
}

.theme-toggle:hover {
    background: var(--tertiary-surface-bg);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* prevent body scrolling when left/right aside menu is open */
body.menu-open {
    overflow: hidden;
    /* position: fixed; */
    width: 100%;
}


nav .logout-btn {
    text-decoration: none;
    background-color: #FF5A5F;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #E74C4C;
    /* Slightly deeper on hover */
}


@media only screen and (max-width: 999px) {
    nav .logout-btn {
        padding: 4px 8px;
    }
}

nav .login-btn {
    text-decoration: none;
    background-color: #6DBF73;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.2s;
}

.login-btn:hover {
    background: #58a25d;
    /* Slightly deeper on hover */
}


@media only screen and (max-width: 999px) {
    nav .login-btn {
        padding: 4px 8px;
    }
}

.brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--color);
    font-weight: 800;
    font-size: 1.7rem;
}

@media only screen and (max-width: 999px) {
    .brand>a>span {
        display: none;
    }
}

.brand img {
    height: 30px;
    margin-right: 10px;
}

@media only screen and (max-width: 999px) {
    .brand img {
        height: 26px;
    }
}

.nav-links {
    margin: 0 24px;
    display: flex;
    align-items: center;
}


@media only screen and (max-width: 999px) {
    .nav-links {
        margin: 0 12px;
        display: flex;
        align-items: center;
    }

    .nav-links>a>span {
        display: none;
    }
}

.nav-links a {
    margin: 0 24px;
    text-decoration: none;
    line-height: 1;
    color: var(--header-nav-links-color);
    font-size: var(--header-nav-links-font-size);
}

@media only screen and (max-width: 999px) {
    .nav-links>a {
        margin: 0 7px;
    }
}


.nav-links a>span {
    margin-left: 5px;
}

.nav-links a:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 1200px) {
    .nav-links>a>span {
        display: none;
    }
}

/* common for both left and right aside menu */
.aside-menu {
    position: fixed;
    top: 0;
    width: 250px;
    /* width: 100%; */
    height: 100%;
    background: #222;
    color: white;
    padding: 1rem;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    max-height: 100vh;
    font-family: var(--font-family-english);
}

.aside-menu ul {
    list-style: none;
    margin-top: 31px;
    margin-left: 10px;
    color: #f5f5fa;
}

.aside-menu ul>li {
    border-top: 1px solid #57585a;
}

.aside-menu ul>li:last-child {
    border-bottom: 1px solid #57585a;
}

.aside-menu ul li a {
    color: #c1c8c0;
    text-decoration: none;
    padding: 10px 0px;
    display: inline-block;
}

.aside-menu ul li a:hover {
    color: #ffffff;
}

/* only for left side */
.aside-menu.left {
    left: 0;
    transform: translateX(-100%);
}

/* only for right side */
.aside-menu.right {
    right: 0;
    transform: translateX(100%);
}

/* both left and right */
.aside-menu.show {
    transform: translateX(0);
}

aside>.close-btn {
    /* background: #5e89db; */
    /* color: white; */
    border: none;
    border-radius: 7px;
    /* padding: 0.5rem 1rem; */
    cursor: pointer;
    /* font-size: 1rem; */
    background-color: transparent;
    outline: none;
}

aside>.close-btn>.bi {
    color: #e1dfdf;
    font-size: 50px;
    padding-left: 9px;
}


/* 3-lines menu*/
#hamburgerIcon {
    cursor: pointer;
    font-size: 39px;
    display: flex;
    align-items: center;
    color: var(--hamburger-icon-color);
    margin-right: 10px;
}

#hamburgerIcon img {
    height: 100%;
    margin-right: 10px;
}

@media only screen and (max-width: 999px) {
    #hamburgerIcon {
        display: flex;
        font-size: 33px;
    }
}

/* 9-dots */
#candyMenu {
    height: 22px;
    cursor: pointer;
}

footer {
    border-top: 1px solid rgb(216, 216, 216);
    color: rgb(80, 80, 80);
    font-size: 0.8rem;
    padding: 20px 0px;
}

@media only screen and (max-width: 999px) {
    footer {
        padding-bottom: 50px;
    }
}

footer>div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

footer img {
    height: 30px;
    width: auto;
}

@media only screen and (max-width: 999px) {
    footer>div {
        flex-direction: column;
        gap: 10px;
    }
}

footer a {
    text-decoration: none;
    color: inherit;
}

;

footer a:hover {
    text-decoration: underline;
}



/* Override sweet-modal color */
.sweet-modal-content {
    color: black !important;
}

.sweet-modal-overlay {
    background: radial-gradient(at center, rgba(34, 39, 46, 0.6) 0%, rgba(34, 39, 46, 0.7) 100%) !important;
}

@media only screen and (max-width: 575.98px) {

    .sweet-modal-box,
    .sweet-modal-box.alert {
        position: relative;
        left: 0 !important;
        margin-top: 0px;
        margin-bottom: 0px;
        width: 100% !important;
        height: 100%;
        max-height: 100%;
    }
}

@media only screen and (max-width: 479.98px) {

    .sweet-modal-box,
    .sweet-modal-box.prompt,
    .sweet-modal-box.alert {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        /* width: 100%;
        height: 100%;
        max-height: 100%; */
    }

    .sweet-modal-close {
        position: relative !important;
        top: 0px !important;
        right: 0px !important;
    }

    .sweet-modal-close a.sweet-modal-close-link {
        background-size: 45px !important;
    }
}



.container {
    width: 92%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.step-info {
    font-size: 0.8rem;
}

label.required::after {
    content: " *";
    color: red;
}

form .field label.deprecated {
    font-size: 0.8rem;
    margin-bottom: 6px;
    display: inline-block;
}



.button.next:hover {
    transform: translateX(4px);
    /* Slide right */
}

.button.prev:hover {
    transform: translateX(-4px);
    /* Slide left */
}

.button-pair {
    text-align: center;
    margin-top: 30px;
}

@media only screen and (max-width: 575.98px) {
    .button-pair {
        margin-bottom: 10px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 6px 14px;
    /* unified padding */
    background: #0d5287;
    color: white;
    font-size: 14px;
    text-decoration: none;
    /* for <a> */
    border: none;
    /* for <button> */
    cursor: pointer;
    overflow: visible;
    line-height: 1;
    /* 👈 important */
    width: 150px;
    height: 40px;
    font-family: var(--font-family-english);
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    left: 150px;
}

.button:hover {
    background: #0585e8;
}

/* Arrow Buttons */
.next::after,
.prev::after {
    border-style: solid;
}

/* Next Button */
.next::after {
    right: -23px;
    border-width: 26px;
    border-color: transparent transparent transparent #0d5287;
}

.next:hover::after {
    border-left-color: #0585e8;
}

/* Prev Button */
.prev::after {
    left: -49px;
    border-width: 26px;
    border-color: transparent #0d5287 transparent transparent;
}

.prev:hover::after {
    border-right-color: #0585e8;
}

.next.red::after {
    right: -23px;
    border-width: 26px;
    border-color: transparent transparent transparent #FF5A5F;
}

.next.red:hover::after {
    border-left-color: #FF5A5F;
}

@media only screen and (max-width: 479.98px) {
    .button {
        width: 115px;
        height: 34px;
    }

    .button::after {
        left: 113px;
    }

    .prev::after {
        left: -42px;
        border-width: 22px;

    }

    .next::after {
        right: -23px;
        border-width: 22px;
    }

    .next.red::after {
        right: -23px;
        border-width: 22px;
        border-color: transparent transparent transparent #FF5A5F;
    }
}


.smart-notice {
    display: none;
}

.smart-notice .dismiss {
    background-color: transparent;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    border-color: inherit;
    margin-left: 10px;
    padding: 0px 7px;
    border-radius: 4px;
    cursor: pointer;
}

.smart-notice {
    display: none;
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.smart-notice.show {
    display: block;
}

.smart-notice.hide {
    opacity: 0;
    /* transform: translateY(20px); */
}

/* to highlight textbox, select, textarea etc. if validation fails */
.error{
    border-color: red !important;
}