body {
    background-color: var(--content-bg);
}

/* Section layout */
.login-section {
    display: flex;
    height: 100vh;
    flex-wrap: wrap;
    background-color: white;
}

.no-caret::after {
    display: none !important;
}

/* 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;
    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);
}

/* sleect 2 css */


/* 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;

    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;
    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: 14px;
    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;
    /* Tooltip se bhi upar */
}

/* Show dropdown on hover */
.sidebar.collapsed .nav-item.dropdown:hover .dropdown-menu.custom-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Optional: dropdown arrow rotate */
.nav-link.active .dropdown-arrow {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}


/* setting dropdown */
.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-menu.custom-dropdown .nav-link {
    padding: 0.5rem 0.2rem;
    font-size: 14px;
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.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(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40.5px 20px;
    transition: left 0.3s ease;
    z-index: 1025;
}

.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;
}

#sidebarClose {
    display: none;
}

  .top-search::placeholder{
    color: white !important;
  }


/* ---------- 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);
}

@media (max-width: 991px) {
  .login-section {
    display: flex;
    align-items: center;
    justify-content: center;
  }
 
  .left-section {
    display: none;
  }
 
  .right-section {
    width: 100%;
    padding-top: 0rem;
  }
}
@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: 1rem;
        background-color: rgb(255, 255, 255);
        border-radius: 50%;
        padding-block: 2px;
        padding-inline:5px;
        font-size: 12px;
    }
}