.navbar-brand img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    max-width: 250px;
}
@media (max-width: 680px) {
    .main form {
        margin: 1.2rem -0.75rem 0 -0.75rem;
    }
}
.logo-login{
    width: 10rem;
}
.main h2 {
    padding-bottom: 0.6rem;
    margin: 0 0 0 0;
}
.btn.btn-logo-bg {

    background-image: linear-gradient(to right, #478ECC 0%, #61479D  100%);
    margin: 10px 0;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    /* background-size: 200% auto; */
    background-size: 100% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;
    display: block;
    font-size: 18px;
    transition: 0.2s all ease-in;
    border: none;


    &:hover {
        background-image: linear-gradient(to right, #58a1e1 0%, #795db9  100%);
       color: #fff;
       text-decoration: none;
       box-shadow: #478ECC 0px 10px 10px -10px, #61479D 0px 20px 20px -20px;
    }
}

.language-text{
    color: #fff;
}
.language-img{
    width: 1.5rem !important;
    margin-left: 0.2rem;
    margin-right: 0.3rem !important;
}
.nav-language-text{
    cursor: pointer;
}
.change-language a{
    text-decoration: none;
    color: black;
}
.change-language:active {
    background-color: unset;
}
.send-message{
    background: #0dcaf0 !important;
}
.link-description{
    color: #0d6efd;
    text-decoration: underline;
}
.btn-comment {
    background: none !important;
    padding: 0.5rem 0.5rem;
    border: none;
}
.btn-alert {
    background: rgb(214, 138, 71);
    color: #FFF;
}
.btn-alert:hover {
    background: rgb(255, 168, 86);
    color: #FFF;
}

.g-color-red {
    color: rgb(211, 8, 8);
    font-weight: 600;
    font-size: 1.1rem;
}

.business-body .business-rating .rating-summary .rating-reviews .review-item img {
    min-width: 1.5rem;
}
.business-body .business-rating .rating-summary .rating-total .rating-avatars img {
    min-width: 1.5rem;
}
.infobox-dropdown .btn-infobox {
    cursor: pointer;
    color: #FFF;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 11px;
    transition: .3s all;
}
.infobox-dropdown .btn-infobox:hover {
    background: rgba(255, 255, 255, 0.05);
}
.main hr {
    border-top: 1px solid #999;
    /* border-top: 1px solid rgba(6, 21, 35, 0.1); */
}
.main h2.thks {
    border-bottom: none;
    padding-bottom: 0;
}
.logo-backend{
    width: 70%;
    object-fit: contain;
}
.m-a{
    margin: auto;
}
#more-review{
    color: #0d6efd;
    text-decoration: underline;
}
.d-n{
    display: none !important;
}
.business-body .business-main-details .business-introduction h2.distance {
    font-size: 0.8rem;
}

.business-body .business-rating .rating-summary.single {
    border-left: none;
}
.business-body .business-rating .rating-total.single {
    border-top: none;
}
.btn-comment.active {
    path {
        fill: #0966FF !important;
    }
}

.main .no-account {
    border-bottom: none;
    padding-bottom: 0;
}
.main .select-lang {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    color: #898F97;
    border-bottom: 1px solid rgba(6, 21, 35, 0.1);
    padding-bottom: 1.25rem;
}
.main .select-lang a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    padding: 0 0.5rem;
}
.main .select-lang img,
img.flag  {
    width: 20px;
    height: auto;
    display: inline;
}
.main {
    #frm-register-completed {

        h2 {
            border-bottom: none;
            padding-bottom: 0;
            margin-bottom: 0.4rem;
        }
        .txt-description {
            color: #061523;
            font-size: 1rem;
            font-weight: 200;
            margin-bottom: 1.2rem;
        }
        button {
            padding: 1rem 0;
            border-radius: 0.75rem;
            margin: 0.4rem;
            min-width: 160px;
        }
    }
}
.alert-txt {
    color: rgb(220, 9, 9);
    font-size: 0.8rem;

    &.alert-register {
        background: rgba(255, 0, 0, 0.1);
        border-radius: 0.4rem;
        padding: 0.5rem;
        margin-bottom: 0.6rem;
    }
}
#char-count {
    color: rgb(127, 127, 127);
    font-size: 0.8rem;
}
.feed-body .feed-share img.avatar {
    min-width: 3rem;
}
.dashboard .dashboard-body .custom-info-window.business-window .infobox-checkins img {
    background: #0A2339;
}

.dashboard-header .header-filters-toggle {
    width: inherit;

    img {
        min-width: 40px;
    }
}

.feed-body .feed-posts .feed-post .post-thread .post-replies .post-reply .post-reply-details .comment-infobox-dropdown {
    position: absolute;
    top: -3px;
    right: 0;
    color: #ddd;
    border-radius: 50%;
    width: 1.4rem;
    height: 1.4rem;
    display: flex;
    padding-bottom: 8px;
    justify-content: center;
    align-items: center;
    transition: 0.25s all ease-in-out;
    cursor: pointer;

    &:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu {
        background: rgba(40, 56, 70, 0.95);

        .dropdown-item {
            color: #EEE;
            font-size: 0.8rem;
            width: 7rem;

            &:hover {
                background: rgba(66, 80, 92);
            }
        }
    }
}

.feed-body .feed-posts .feed-post .post-thread .post-replies .post-reply .post-reply-details {

    span {
        right: 30px;
        top: 0;
    }

    .comment-text {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* แสดงแค่ 5 บรรทัด */
        -webkit-box-orient: vertical;
        white-space: normal;

        &.expanded {
            -webkit-line-clamp: unset;
        }
    }
}


@media (max-width: 680px) {
    .navbar-brand img {
        width: 15%;
    }
    .navbar-brand img {
        height: 40px;
        width: auto;
    }
    .dashboard-header .header-wrapper .navbar-brand img {
        height: 32px !important;
        width: auto;
    }
}
@media (max-width: 767.9px) {
    .business-body .business-rating .rating-summary.single {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }
}

/* Wrapper to center the loader */
.wrap-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2); /* Black background with 80% opacity */
    z-index: 1000; /* Ensure it is on top */
}

/* Loader styles */
.loader {
    width: 80px;
    --b: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    /* background: #514b82; */
    background: #0766ff;
    -webkit-mask:
        repeating-conic-gradient(#0000 0deg, #000 1deg 70deg, #0000 71deg 90deg),
        radial-gradient(farthest-side, #0000 calc(100% - var(--b) - 1px), #000 calc(100% - var(--b)));
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
    animation: l5 1s infinite;
}

/* Keyframes for loader animation */
@keyframes l5 {
    to { transform: rotate(.5turn); }
}

.loading-container{
    text-align: center;
}

.dashboard .dashboard-body .custom-info-window .infobox-name:hover {
    color: #ffffff!important;
}

.dashboard-sidebar .filters-sidebar .form-check.form-switch .form-check-label {
    padding-right: 0;
}
.profile-measure,
.infobox-measure {
    display: block;
    font-size: 0.8rem;
    color: #fff;
    position: relative;
    padding-left: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-weight: 600;
}
.profile-measure:before,
.infobox-measure:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1rem;
    height: 1rem;
    background: url(../img/icons/measure.svg) center no-repeat;
    background-size: contain;
    content: " ";
    filter: brightness(0) invert(1);
    margin: auto;
}

.txt_email_notice {
    font-size: 15px;
    color: #061523;
    font-weight: 200;
}

.wrap-img-avatar {
    display:inline-block;
}
.wrap-img-avatar .review-badge {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    color:white;
    padding:5px;
    width: 100%;
}

.dashboard .dashboard-body .custom-info-window {
    height: 480px;
}
.dashboard .dashboard-body .custom-info-window.person-window .infobox-details {
    padding: 1.5rem;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.profile-body .profile-gallery {
    grid-template-columns: repeat(3, 1fr);
}

.suggest-profile-img {
    background: rgb(191, 42, 42);
    color: #FFF;
    padding: 0.4rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
}

@media (max-width: 767.9px) {
    .dashboard .dashboard-body .custom-info-window {
        height: 440px;
    }
}

@media (max-width: 1280px) {
    .navbar-brand img {
        width: 80%;
    }
}
@media (max-width: 780px) {
    .navbar-brand img {
        width: 60%;
    }
}
@media (min-width: 1280px) {
    .dashboard-header {
        padding-top: 0.4rem;
        padding-bottom: 0.6rem;
    }
    .navbar-brand img {
        margin-top: 0.6rem;
    }
}

/* Feed Post Description */
.post-content {

    p {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 5; /* แสดงแค่ 5 บรรทัด */
        -webkit-box-orient: vertical;
        white-space: normal;
        line-height: 1.5em;

        &.expanded {
            display: block; /* หรือ display: initial; */
            overflow: visible;
            -webkit-line-clamp: unset;
            -webkit-box-orient: unset;
            white-space: normal;
        }
    }

    .toggle-button {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        padding: 0;
        font-size: 12px;
        margin-top: 4px;

        &:hover {
            text-decoration: underline;
        }
    }

    .post-with-background {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 5; /* แสดงแค่ 5 บรรทัด */
        -webkit-box-orient: vertical;
        white-space: normal;
        line-height: 1.5em;

    }
}



/* Hashtag */
#input-description {

    .hashtag {
        background-color: rgb(31, 75, 194);
        color: white;
        padding: 2px;
        border-radius: 3px;
    }
}

.feed-body .feed-posts .feed-post .post-content {
    -webkit-line-clamp: 5; /* แสดงแค่ 5 บรรทัด */

    .post-content-text a.hashtag {
        color: #478ECC;

        &:hover {
            color: #007bff;
        }
    }
}

.hashtag-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: top;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 1rem;


    .hashtag-search-container {
        position: relative; /* Add this for positioning the icon */
        width: 100%; /* make width 100% to full width */
        display: flex; /* use flex to align icon */
        align-self: start;
        padding: 22px 12px;

        &::after {
            content: "#";
            color: #ddd;
            position: absolute;
            left: 36px;
            top: 28px;
        }

        input {
            background: #061523;
            border: 1px solid #2e2d30;
            color: #ddd;
            border-radius: 20px;
            padding: 4px 26px 4px 36px; /* Adjust padding to make space for the icon */
            width: 100%; /* make width 100% to full width */
            /* position: relative; Remove this */

            &:focus {
                outline: none;
            }
        }

        .search-icon { /* New class for the icon */
            position: absolute;
            left: 16px; /* Adjust for spacing */
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            background-image: url('../img/icons/search_white.svg');
            background-repeat: no-repeat;
            background-size: contain;
            opacity: 0.5;
            cursor: pointer;
            display: block;
        }

        .search-remove {
            position: absolute;
            right: 18px; /* Adjust for spacing */
            top: 29px;
            width: 20px;
            height: 20px;
            opacity: 0.3;
            cursor: pointer;
            transition: 0.2s ease-in-out;

            &:hover {
                opacity: 0.5;
            }
        }
    }

    .top-hashtag-container-mobile {
        display: flex;
        justify-content: left;
        gap: 0.5em;
        flex-wrap: wrap;

        .top-hashtag {
            background: #EEE;
            font-size: 14px;
            border-radius: 12px;
            padding: 2px 8px;
            cursor: pointer;
            align-self: center;

            &:hover {
                background-color: #FFF;
            }
        }
    }

    .top-hashtag-container {
        display: flex;
        flex-direction: column;
        justify-content: left;
        gap: 1em;
        color: #FFF;
        padding: 1rem 0.5rem;

        h2 {
            font-size: 1.2rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.5);
        }

        a.top-hashtag {
            display: flex;
            flex-direction: column;
            border-radius: 8px;
            padding: 4px 8px;
            transition: 0.2s all ease-in-out;
            cursor: pointer;

            .hashtag-name {
                font-weight: 600;
                transition: 0.2s all ease-in-out;
            }

            .hashtag-posts {
                font-size: 12px;
                color: #666;
            }

            &:hover {
                background: #1e2c38;

                .hashtag-name {
                    color: #007bff;
                }
                .hashtag-posts {
                    color: #777;
                }

            }
        }
    }
}

#feed-mobile {
    display: none;
}
#feed-screen {
    display: block;
    position: sticky;
    top: 0;
}

@media (max-width: 1200px) {
    #feed-mobile {
        display: block;
    }
    #feed-screen {
        display: none;
    }
    .hashtag-search-container {
        margin-top: 10px;
    }
}

@media (max-width: 680px) {
    .hashtag-container {
        flex-direction: column;

        .hashtag-search-container {
            width: 100%;
            margin-bottom: 10px;
        }
    }
}

#email_input {
    &:disabled {
        color:rgba(255, 255, 255, 0.7);
    }
}
#is-hide-my-email {
    padding: 5px;
    display: flex;
    flex-direction: row;
    gap: 4px;

    p {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);

    span {
        text-decoration: underline;
        cursor: pointer;
        color: rgba(255, 255, 255, 0.7);
    }
    }

    img {
        width: 16px;
        height: 16px;
    }
}
#emailModal {
    .modal-content {
        background-color: #263744 !important;
        color: #f1f1f1;

        .form-field label {
            margin-top: 12px;
        }

        .modal-body {
            position: relative;

            .form-control {
                background-color: rgba(66, 80, 92);
                color: #FFF;
                border: 1px solid #60656a;
                font-size: 14px;
            }

            .alert {
                color: rgb(252, 47, 47);
                font-size: 0.7rem;
                position: absolute;
                right: 0px;
                top: 10px;
            }
        }

        .modal-header {
            border-bottom: 1px solid #60656a;
        }
        .modal-footer {
            border-top: 1px solid #60656a;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #aaa;
            font-size: 12px;

            .btn {
                padding: 8px 20px !important;
            }
            .left {
                margin-right: auto;
            }

            .right {
                margin-left: 10px;
            }
        }
        button.btn {
            padding: 8px 20px !important;
            border-radius: 12px;
        }
    }
}


.dashboard .policy-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: #FFF;
    font-size: 12px;
    background: #061523;
    z-index: 1000;
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
    max-width: 320px;

    a {
        color: #ccc;
        &:hover {
            color: #FFF;
            text-decoration: underline;
        }
    }
}

.dashboard .sidebar-right .policy-container {
    color: #FFF;
    font-size: 12px;
    background: #061523;
    z-index: 1000;
    display: block;
    position: relative;
    margin-top: 40px;
    left: 0;

    a {
        color: #ccc;
        &:hover {
            color: #FFF;
            text-decoration: underline;
        }
    }
}

.dashboard-footer {
    z-index: 80;
}

@media (max-width: 1200px) {
    .dashboard .policy-container {
        display: none;
    }
}
