body {
    background-color: var(--content-bg);
}

/* form css */
html[dir="rtl"] .form-control {
    text-align: right;
}

html[dir="rtl"] .toggle-password {
    cursor: pointer;
    direction: ltr !important;
}

html[dir="rtl"] .position-absolute {
    direction: ltr !important;
}

/* Section layout */
.login-section {
    display: flex;
    height: 100vh;
    flex-wrap: wrap;
}

.no-caret::after {
    display: none !important;
}

/* ========== LOCATION DROPDOWN ========== */
.location-dropdown {
    position: absolute;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    display: none;
    z-index: 99999;
    max-height: 220px;
    overflow-y: auto;
}

.location-dropdown.show {
    display: block;
}
.location-dropdown ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.location-dropdown li {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
}

.location-dropdown li:hover {
    background: #f3f3f3;
}

/* map view */

.map-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.map-btn {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    /* center perfectly */
    z-index: 10;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s ease-in-out;
}

/* Left section */
.left-section {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.image-container {
    height: 100%;
    width: 100%;
    border-radius: 1rem;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: relative;
}

.bg-login {
    background-image: url('/assets/images/form/login-form.png');
}

.bg-register {
    background-image: url('/assets/images/form/signup.png');
}

.bg-forgot {
    background-image: url('/assets/images/form/forgotpass.png');
}

.bg-otp {
    background-image: url('/assets/images/form/otp.png');
}

.bg-changepassword {
    background-image: url('/assets/images/form/password.png');
}

.text-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 2rem;
    text-align: center;
    color: #fff;
}

.right-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    background-color: #fff;
    padding-top: 7rem;
}

.form-wrapper {
    width: 75%;
    max-width: 400px;
    align-self: flex-start;

}

.toggle-password {
    cursor: pointer;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--secondary);
}

.divider:not(:empty)::before {
    margin-right: .75em;
}

.divider:not(:empty)::after {
    margin-left: .75em;
}

.btn-icon img {
    width: 20px;
    height: 20px;
}

.otp-box {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #ccc;
    outline: none;
    transition: all 0.3s ease;
}

.otp-box:focus {
    border-color: var(--primary, #0b2c47);
    box-shadow: 0 0 5px rgba(11, 44, 71, 0.3);
}

/* sidebar */

.sidebar {
    width: var(--sidebar-width, 240px);
    height: 100vh !important;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    transition: width 0.3s ease, left 0.3s ease;
    z-index: 1030;
}

/* -----------------------------------
   Sidebar Header
------------------------------------- */
.sidebar-header {
    height: 81px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline-start: 15px;
    background-color: var(--bg-color);
    flex-shrink: 0;
}

.sidebar-header .logo {
    width: 100px;
}

/* -----------------------------------
   Scrollable Menu Area
------------------------------------- */
.sidebar-menu-wrapper {
    overflow: hidden;
    flex-grow: 1;
    padding-bottom: 20px;
}

.sidebar-menu-wrapper ul {
    list-style: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Optional custom scrollbar */
.sidebar-menu-wrapper::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.nav-link svg {
    color: white;
    /* default sidebar icon color */
    width: 18px;
    transition: .2s;
}

.nav-link:hover svg path,
.nav-link.active svg path {
    fill: var(--primary);
}

.nav-link:hover .stroke path,
.nav-link.active .stroke path {
    stroke: var(--primary);
}

/* -----------------------------------
   Sidebar Navigation Links
------------------------------------- */
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sidebar-text);
    padding: 12px 15px;
    border-radius: 8px;
    margin: 3px 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sidebar .nav-link svg {
    width: 15px;
    height: 15px;
}


/* Hover */
.sidebar .nav-link:hover {
    background-color: var(--sidebar-hover-bg);
    color: var(--sidebar-hover-text) !important;
}

/* Active Link */
.sidebar .nav-link.active {
    background-color: var(--sidebar-hover-bg);
    color: var(--sidebar-hover-text) !important;
    font-weight: 600;

}

.sidebar.collapsed {
    width: var(--sidebar-collapsed, 70px);
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .logo {
    display: none;
}

.sidebar.collapsed .search-box {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px 10px;
    gap: 0;
    position: relative;
}


/* Tooltip styling */
.sidebar.collapsed .nav-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translate(10px, -50%);
    background-color: var(--sidebar-hover-bg);
    color: var(--sidebar-hover-text);
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show tooltip on hover */
.sidebar.collapsed .nav-link:hover::after {
    opacity: 1;
}

.sidebar.collapsed .nav-item.dropdown {
    position: relative;
}

/* Dropdown menu styling */
.sidebar.collapsed .dropdown-menu.custom-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 10px;
    background-color: #12161E;
    padding: 10px 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    min-width: 180px;
    z-index: 1200;
}

/* Show dropdown on hover */
.sidebar.collapsed .nav-item.dropdown:hover .dropdown-menu.custom-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu.custom-dropdown {
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 0.8rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    visibility: hidden;
}

.dropdown-menu.custom-dropdown.show {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* submenu open */
.dropdown-menu.custom-dropdown.show {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* arrow rotate */
.nav-link.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-link.dropdown-toggle::after {
    display: none;
}


/* Topbar */
.topbar {
    height: var(--topbar-height);
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    background-color: var(--content-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40.5px 20px;
    transition: left 0.3s ease;
    z-index: 1025;
}


.topbar .search-box {
    width: 300px;
    max-width: 100%;
}

.search-box {
    width: 320px;
    max-width: 100%;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.icon-btn {
    background: #EDEDED;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info span {
    line-height: 1.2;
}

.profile-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;

}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.sidebar.collapsed~.topbar {
    left: var(--sidebar-collapsed);
}

/* Content */
.content {
    margin-left: var(--sidebar-width);
    background-color: var(--content-bg);
    padding: calc(var(--topbar-height) + 30px) 20px 20px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed~.content {
    margin-left: var(--sidebar-collapsed);
}

.sidebar.collapsed .dropdown-arrow {
    display: none;
}

#sidebarToggle {

    color: var(--text-primary);
    font-size: 20px;
}

.custom-success-badge {
    background-color: #E9FCEB !important;
    color: #24A148 !important;
    border-radius: 20px !important;
    padding: 4px 10px !important;
    font-size: 0.8rem;
    font-weight: 600;
}

/* search bar */
.custom-breadcrumb {
    font-size: 14px;
    color: #6D758F;
    font-weight: 500;

    a {
        text-decoration: none;
        color: #6D758F;

    }

    .separator {
        margin: 0 6px;
        color: #9BA3B5;
    }

    .active {
        color: #143347;
        font-weight: 600;
    }
}

/* =============================
     CUSTOM SEARCH BAR
============================= */

.custom-search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #DDE1EA;
    border-radius: 10px;
    /* max-width:400px; */
    height: 42px;
    overflow: hidden;
    padding-left: 10px;
}

/* left search icon */
.custom-search-bar .search-icon {
    font-size: 18px;
    color: #6D758F;
    margin-right: 8px;
}

.custom-search-bar .custom-input {
    border: none !important;
    box-shadow: none !important;
    flex: 1;
    font-size: 14px;
    padding-left: 2px;
    height: 100%;
}

/* 
.custom-search-bar .custom-search-btn {
    background-color: var(--primary);
    color: var(--sidebar-text);
    border-radius: 0;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;

    justify-content: center;
} */
/* 
.custom-search-bar .custom-input:focus {
    outline: none;
} */

.custom-search-bar .custom-input:focus {
    outline: none;
}

/* modal */
.modal-dialog-scrollable .modal-content {
    overflow-x: hidden !important;
}

.modal-dialog-scrollable .modal-body {
    overflow-x: hidden !important;
    overflow-y: auto !important;

    scrollbar-width: thin;

}

/* ---------- CUSTOM TABS STYLING  ---------- */
.custom-tabs {
    border-bottom: 2px solid #E4E7EC !important;
}

.custom-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: var(--secondary);
    font-weight: 500;
    padding-bottom: 10px;
    transition: 0.2s ease;
    display: inline-block;
}

.custom-tabs .nav-link.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary) !important;
    font-weight: 600;
}

.custom-tabs .nav-link:hover {
    color: var(--primary);
}

.flatpickr-calendar {
    position: absolute !important;
    z-index: 9999 !important;
}

img {
    user-select: none;
}

.thumb-img {
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

.see-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .55);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.gallery-modal-img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transition: opacity .2s;
}

.thumb-small {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-nav-btn {
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.gallery-nav-btn i {
    font-size: 16px;
    color: #000;
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.08);
}

.gallery-nav-btn:active {
    transform: scale(0.96);
}

.remove-btn-custom {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 26px;
    height: 26px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    line-height: 1;
}

.remove-btn-custom:hover {
    background: var(--secondary);
    transform: scale(1.12);
}

.remove-btn-custom:active {
    transform: scale(0.9);
}

.booking-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 15px;
    border-radius: 50px;
    font-size: 14px;
    color: white;
}

.toast-message {
    position: fixed;
    right: 20px;
    bottom: 30px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.5s ease;
    z-index: 9999;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

.notif-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    cursor: pointer;
    transition: 0.2s ease;
    margin-bottom: 14px;
}

.notif-card:hover {
    background: #F9FAFB;
    border-color: #D0D5DD;
}

.notif-card.unread {
    background: #F1F6FF;
    border-left: 4px solid #3B82F6;
}

.notif-icon {
    width: 48px;
    height: 48px;
    background: #0F172A;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.notif-content h6 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.notif-content p {
    margin-bottom: 4px;
    color: #4B5563;
    font-size: 14px;
}

.notif-time {
    font-size: 12px;
    color: #9CA3AF;
}

.mark-read-btn {
    border: none;
    background: transparent;
    color: #3B82F6;
    font-size: 13px;
    padding: 0;
    margin-left: auto;
    cursor: pointer;
}

/* my account flow css start */
.my-account-side.active,
.my-account-top.my-account-side.active {
  background-color: var(--primary);
  color: white;
}

.my-account-side:hover {
  background-color:var(--primary);
  color: white;
}

.myaccount-nav.active img,
.myaccount-nav:focus img {
  filter: brightness(0) invert(1) !important;
  transition: filter 0.2s ease;
}

@media (max-width: 768px) {
    .sidebar {
        left: -240px;
    }

    .sidebar.show {
        left: 0;
    }

    .topbar {
        left: 0 !important;
    }

    .content {
        margin-left: 0;
    }

    /* Desktop toggle hide on mobile */
    #sidebarToggle {
        display: none;
    }

    /* Show close button only in mobile */
    #sidebarClose {
        display: inline-block !important;
        margin-right: 5px;
        background-color: var(--primary);
        font-size: 0.7rem;
        color: var(--white);
        border-radius:8px;
    }

}

#sidebarClose {
    display: none;
}