body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #c09a54;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bb964a;
}

::-webkit-scrollbar-track {
    background: #f5f5f500;
    border-radius: 4px;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #c09a54 #f5f5f5;
}

.canvas-area {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 186px);
    align-items: center;
    justify-content: center;
    overflow: auto;
    position: relative;
    height: 100%;
    width: 100%;
    font-size: 12px;
}
.status-bar{
    background-color: #ffffff;
    padding: 5px;
    color: #696969;
}

.canvas-area svg {
    width: auto;
    height: 100%;
    /* user-select: none; */
}

.canvas-area svg tspan {
    fill: #000;
}

.canvas-area #zoomableImg {
    height: 100%;
    width: auto;

}

.page-title {
    font-size: 28px;
    color: #BB964A;
    padding: 5px 0;
    font-weight: 600;
}

/* Login */
.login-container {
    background: url(../images/homeland-bg.jpg) no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
}

.login-container .login-header {
    padding-top: 20px;
}

.login-box-outer {
    width: 100%;
    height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: #fff;
    width: 400px;
    padding: 20px 30px;
    border-radius: 5px;
    font-size: 14px;
}

/* btn */
.btn-primary {
    background: #BB964A;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    /* height: 52px; */
    cursor: pointer;
    font-size: 16px !important;
}

.btn-primary:hover {
    background: #A88B3D;
}

.btn-primary:focus {
    outline: none;
}

.btn-primary:active,
:not(.btn-check)+.btn:active,
.btn-outline-primary:active,
.btn:first-child:active {
    background: #80692a;
    border: 1px solid #BB964A;
}

.btn-primary:disabled {
    background: #A88B3D;
    cursor: not-allowed;
}

.btn-outline-primary {
    background: #fff;
    border: 1px solid #BB964A;
    color: #BB964A;
    padding: 10px 20px;
    border-radius: 4px;
    height: 52px;
    cursor: pointer;
    outline: none;
}

.btn-outline-primary:hover {
    background: #BB964A;
    border: 1px solid #BB964A;
    color: #fff;
}

.form-label {
    font-size: 14px;
    color: #000;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    /* height: 52px; */
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 10px;
    border: 1px solid #dbdbdb;
    margin-bottom: 5px;
}

.form-control:focus {
    border: 1px solid #BB964A;
    outline: none;
    box-shadow: none;
}

::placeholder {
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

.custom-toggler.navbar-toggler {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    ;
    background-repeat: no-repeat;
    background-position: center;
}

.main-navbar {
    background: #071633;
    padding: 10px;
}

.main-navbar .nav-link {
    color: #fff;
}

.main-navbar .nav-link.show,
.main-navbar .nav-link:hover {
    color: #BB964A;
}

.dropdown-item:focus,
.dropdown-item:hover {
    color: #BB964A;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #071633;
    ;
}

.hero-image {
    background-image: url(../images/project-img.jpg);
    height: 100%;
    width: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-y: auto;
}

.hero-image .welcome-text {
    color: white;
    max-width: 450px;
    text-align: center;
    font-family: serif;
    letter-spacing: 5px;
    font-size: clamp(1.125rem, 0.88rem + 0.9333vw, 2rem);
    margin: 0 auto;
    padding-top: 25px;
}

.link-boxes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    margin-top: 5vw;
}

.link-boxes .link-item {
    width: 100%;
    height: 250px;
    max-width: 450px;
    background: #f5f5f5;
    text-decoration: none;
    border-radius: 13px;
    position: relative;
    border: 1px solid #BB964A;
}

.link-boxes .link-item.left-item {
    background: url(../images/serviceapartment/service-apartment.jpg) no-repeat center center;
    background-size: cover;
}

.link-boxes .link-item.right-item {
    background: url(../images/serviceapartment/shoping-malls.jpg) no-repeat center center;
    background-size: cover;
}

.link-boxes .link-item span {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: block;
    line-height: 2;
    font-size: clamp(1rem, 0.93rem + 0.2667vw, 1.25rem);
    font-weight: 600;
    color: #FFE6B7;
    background: #00000080;
    text-align: center;
    border-radius: 0 0 13px 13px;
    font-family: serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all .2s ease-in-out;
}

.link-boxes .link-item:hover {
    box-shadow: 0 8px 20px 0 #BB964A83;
}

.link-boxes .link-item:hover span,
.link-boxes .link-item:focus span {
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 250px;
    font-size: 27px;
}

.main-content {
    height: calc(100vh - 104px);
    overflow: auto;
}

.main-content.floors {
    height: calc(100vh - 134px);

}

.main-content.profile-page {
    height: auto;
    min-height: calc(100vh - 104px);
}

.user-dropdown .user-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #8f8f8f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    position: relative;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.user-dropdown:hover .user-icon {
    background: #c09a54;
    -webkit-background: #c09a54;
    -moz-background: #c09a54;
    -ms-background: #c09a54;
    -o-background: #c09a54;
}

.footer {
    background: #c09a54;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    ;
    color: #ffffff;
}

.compass-nav {
    position: absolute;
    right: 50px;
    bottom: 10px;
    z-index: 999;
}

.zoom-control {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    right: 50px;
    top: 30px;
    transform: translateY(-50%);
    background: #C8DEFD;
    border-radius: 25px;
    padding: 2px;
    width: 120px;
    z-index: 999;
}

.zoom-btn {
    background: #C8DEFD;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid #C8DEFD;
    position: relative;

}

.zoom-btn:not(:last-child)::after {
    content: '';
    display: block;
    width: 1px;
    height: 60%;
    background: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -5px;
}

.zoom-btn:hover {
    background: #bdd9ff;
    color: #fff;
}

.zoom-btn:focus {
    outline: none;
}

.zoom-btn:active {
    background: #adccf8;
}

.color-box-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: end;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #414141;
    padding: 5px;
}

.color-box-item {
    display: flex;
    align-items: center;
}

.color-box-item .color-box {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.available {
    background: #25D366;
}

.hold {
    background: #FFEB3B;
}

.sold {
    background: #83aee3;
}
.chc {
    background: #FF5722;
}

.canceled {
    background: #ff4800;
}

.blocked {
    background: #e6e5e6;
}

.modal-header {
    background: #BB964A;
}

.modal-header .modal-title {
    color: #fff;
    font-size: 16px;
}

.table>:not(caption)>*>* {
    background-color: transparent
}

.text-primary {
    color: #BB964A !important;
}

.eye-icon {
    position: absolute;
    right: 15px;
    top: 14px;
    cursor: pointer;
}

.building {
    height: calc(100vh - 104px);
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.floor-wrapper {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
}

.floor {
    width: 650px;
    height: 70px;
    background: #DFEBFE;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: perspective(200px) rotateX(40deg);
    margin-bottom: -15px;
}

.floor * {
    transform: perspective(0) rotateX(0);
}

.floor:hover {
    zoom: 1.04;
    background: #c9deff;
}

.dropdown-menu.show {
    overflow: auto;
    max-height: calc(100vh - 200px);
    -webkit-overflow-scrolling: touch;
    overflow: auto;
}

.form-check-input:checked {
    background-color: #c7985d;
    border-color: #c7985d;
}

.form-check-input:focus {
    box-shadow: 0 0 0 .25rem rgb(199, 152, 93, .25);
}

.profile-page .nav-tabs {
    background: #fff;
    border: 0;
    gap: 10px;
}

.profile-page .nav-tabs .nav-link {
    border-radius: 5px;
    color: #c09a54;
}

.profile-page .nav-tabs .nav-link.active {
    background: #c7985d;
    color: #fff;
}

.profile-page {
    background-image: url(../images/homeland-bg.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

}
.custom-table tr th, .custom-table tr td{
    font-size: 14px;
}
.custom-table thead tr{
    border-radius: 10px;
}
.custom-table tr th{
    background-color: #D3DFF4;
    color: #464857;
    border: 0;
}
.custom-table tr th:first-child{
    border-radius: 10px 0 0 10px;
}
.custom-table tr th:last-child{
    border-radius: 0 10px 10px 0;
}
.table-responsive{
    width: 100%;
    overflow: auto;
    margin-bottom: 10px;
}
.icon-box{
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}
@media screen and (max-width: 768px) {
    .zoom-control{
        right: 10px;
    }
    .main-content {
        height: calc(100vh - 90px);
    }

    .hero-image .welcome-text {
        max-width: 290px;
    }

    .login-header {
        text-align: center;
    }

    .login-box {
        margin: 10px 20px;
        padding: 15px;
    }

    .form-control {
        height: 42px;
        padding: 5px 10px;
    }

    .btn-primary {
        height: 42px;
    }

    .eye-icon {
        top: 10px;
    }

    .main-navbar .container {
        padding: 0;
    }

    .main-navbar .container .custom-toggler.navbar-toggler {
        padding: 5px;
    }

    .color-box-wrapper {
        padding: 5px;
        justify-content: center;
    }

    .footer {
        padding: 5px;
        font-size: 13px;
    }

    .main-content.floors {
        height: calc(100vh - 119px);
    }

    .page-title {
        font-size: 22px;
    }

    .canvas-area {
        max-height: calc(100vh - 162px);
    }

    .profile-tab-content {
        height: auto;
    }

    .link-boxes {
        flex-direction: column;
        gap: 5vw;
    }
}

@media screen and (max-width: 1024px) and (orientation: landscape) {
    .compass-nav {
        right: auto;
        left: 40px;
        bottom: 40px;
    }
}