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(--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;
}

/* 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 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);
}

.preview-img {
    max-width: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.preview-box {
    height: 90px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* border: 1px solid #dee2e6; */
    border-radius: 6px;
    background: #fff;
}

.preview-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.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;
}

.progress-timeline {
    position: relative;
    padding-left: 60px;

    margin: 10px 0;
}

.step {
    position: relative;
    min-height: 80px;
}


.progress-timeline::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 0;
    width: 4px;
    height: 80%;
    background: #d5d5d5;
    border-radius: 10px;
    z-index: 1;
}

/* Filled Green Line */
.progress-timeline::after {
    content: "";
    position: absolute;
    left: 30px;
    /* SAME alignment */
    top: 0;
    width: 4px;
    height: var(--line-fill, 0%);
    background: #0b6f3c;
    border-radius: 10px;
    z-index: 2;
}

/* Circle (PERFECT CENTER) */
.circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #d5d5d5;
    background: #fff;
    position: absolute;
    left: -38px;
    /* 30px(line) - 14px(circle half) = PERFECT CENTER */
    top: 0;
    z-index: 5;
}

/* Completed Step - With Arrow Icon */
.step[data-status="completed"] .circle {
    background: #0b6f3c;
    border-color: #0b6f3c;
    background-image: url('../images/status-icons/next.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

/* Active Step */
.step[data-status="active"] .circle {
    border-color: #0b6f3c;
    background: #fff;
}

.text strong {
    font-size: 14px;
    font-weight: 600;
}

.text small {
    color: #6c757d;
    font-size: 12px;
}

.info-table td {
    color: #6c757d;
    font-size: 14px;
    padding: 6px 0;
    border: none !important;

}

.info-table th {
    font-weight: 600;
    font-size: 14px;
    padding: 6px 0;
    border: none !important;

}

.status-badge {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.in-transit {
    background: #0dcaf0;
    color: #ffffff;
}

.status-badge.scheduled {
    background: #ffc107;
    color: #3b3000;
}

.status-badge.completed {
    background: #198754;
    color: #ffffff;
}

.status-badge.cancelled {
    background: #dc3545;
    color: #ffffff;
}

.status-badge.failed {
    background: #6c757d;
    color: #ffffff;
}

.status-badge.unassigned {
    background: #b02a37;
    color: #ffffff;
}

.custom-div-icon {
    background: transparent;
    border: none;
    font-size: 20px;
}

#map {
    height: 100vh;
    width: 100%;
}

.info-label {
    font-size: 14px;
    color: #6b6b6b;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
}

.kyc-doc-card {
    height: 170px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    transition: all 0.25s ease;
}

.kyc-doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* TEXT OVER IMAGE */
.kyc-doc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.18));
}

.kyc-image-wrapper {
    max-height: 75vh;
    overflow: hidden;
    /* 🔥 yahi main fix hai */
    display: flex;
    align-items: center;
    justify-content: center;
}

#kycModalImage {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.2s ease;
    cursor: zoom-in;
}

.vehicle-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-icon-box img {
    width: 40px;
    height: 40px;
}
@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;
    }
}