.login-section {
  display: flex;
  height: 100vh;
  flex-wrap: wrap;
}

.no-caret::after {
  display: none !important;
}

.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-left.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 {
  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 {
  height: 81px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline-start: 15px;

  flex-shrink: 0;
}

.sidebar-header .logo {
  width: 70px;
}

.sidebar-menu-wrapper {
  overflow: hidden;
  flex-grow: 1;
  padding-bottom: 20px;
}

.sidebar-menu-wrapper ul {
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.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 img {
  color: white;
  width: 15px;
  height: 15px;
  transition: .2s;
}

.nav-link:hover svg path,
.nav-link.active svg path {
  fill: white;
}

.nav-link:hover .stroke path,
.nav-link.active .stroke path {
  stroke: white;
}

/* -----------------------------------
   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);
}

/* Active Link */
.sidebar .nav-link.active {
  background-color: var(--sidebar-hover-bg);
  color: white !important;
}

.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(--content-bg);
  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;
}

.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;
}

.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;
  }
}

    .notif-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.notif-card.unread {
    background: #f4f8ff;
}

.notif-bar {
    width: 5px;
    border-radius: 10px;
}


.cms-tabs-wrapper {
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
  white-space: nowrap;
}

.cms-tabs {
  flex-wrap: nowrap;
  display: flex;
  gap: 10px;
}

.cms-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 18px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.cms-tabs .nav-link.active {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
  background: transparent;
}

.cms-tabs-wrapper::-webkit-scrollbar {
  height: 3px;
}

.cms-tabs-wrapper::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.profile-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 768px) {


  .left-section {
    display: none;
  }

  .right-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;

  }

  .sidebar {
    left: -240px;
  }

  .sidebar.show {
    left: 0;
  }

  .topbar {
    left: 0 !important;
  }

  .content {
    margin-left: 0;
  }

  #sidebarToggle {
    display: none;
  }

  #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;
  }
}