* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

*::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, and Opera */
}

body {
    background-color: #f5f6f8;
    height: 100%;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.vehicle-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-size: 11px;
    color: #666;
}

.stat-value {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.running-icon {
    background-color: #4CAF50;
}

.stopped-icon {
    background-color: #f44336;
}

.idle-icon {
    background-color: #FF9800;
}

.zoom-img:hover {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 1000;
    width: 180px;
    height: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

a {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

p {
    margin-bottom: 0;
}

.bus-id {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 300px;
}

.list-profile {
    height: 28px;
    width: 28px;
    position: sticky;
    margin-right: 5px;
    border-radius: 50%;
    object-fit: cover;
}

.bus-id>img {
    height: 28px;
    width: 28px;
    position: sticky;
    margin-right: 5px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.detail-name {
    overflow-x: scroll;
    white-space: nowrap;
}

.driver-anchor {
    font-size: 14px;
}

.li-edit-icon img {
    max-width: 20px;
}

.route-drop-dwn {
    margin-top: -13px;
}

.list_wrapper {
    overflow-y: scroll;
    padding-left: 12px;
}

.main_container {
    height: 100vh;
    /* overflow: hidden;  */
    /* overflow-y: hidden; */
    /* padding: 40px 28px; */
    /* max-width: 1550px; */
    /* previous */
    max-width: 100vw;
    /* new */
    display: flex;
    margin: auto;
    /* gap: 10px; */
    /*previous*/
    gap: 0px;
    /* new */
    overflow: visible !important;
}

.navbar_container,
.heading_container {
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar_container {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    height: 52px;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--sb-border, #dee2e6);
}

/* ── Navbar Right Section ── */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

/* Icon Buttons — clean, borderless */
.navbar-icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    background: transparent;
    transition: color 0.15s ease, background 0.15s ease;
    text-decoration: none;
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
}

.navbar-icon-btn:hover,
.navbar-popover-wrap.open .navbar-icon-btn {
    color: var(--sb-primary, #0d6efd);
    background: var(--sb-primary-light, #e7f1ff);
    text-decoration: none;
    border: none;
}

.navbar-icon-btn:focus,
.navbar-icon-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

/* ── Profile Trigger ── */
.navbar-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    border: none;
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease;
}

.navbar-profile-btn:hover,
.navbar-popover-wrap.open .navbar-profile-btn {
    background: var(--sb-primary-light, #e7f1ff);
}

.navbar-profile-btn:focus,
.navbar-profile-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sb-primary-light, #e7f1ff);
    flex-shrink: 0;
}

.navbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-profile-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--sb-text-dark, #212529);
}

.navbar-chevron {
    font-size: 10px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.navbar-popover-wrap.open .navbar-chevron {
    transform: rotate(180deg);
}

/* ── Dropdown Card (old, keep for compat) ── */
.navbar-dropdown { display: none; }

.navbar-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--sb-primary-light, #e7f1ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-dropdown-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.navbar-dropdown-title strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-text-dark, #212529);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-dropdown-title span {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Popovers (shared) ── */
.navbar-popover-wrap {
    position: relative;
}

.navbar-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    overflow: hidden;
}

.navbar-popover.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.navbar-popover-header strong {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.navbar-popover-body {
    padding: 6px 0;
}

.navbar-popover-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

.navbar-popover-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    font-weight: 500;
    color: var(--sb-primary, #0d6efd);
    text-decoration: none;
    transition: background 0.15s ease;
}

.navbar-popover-footer:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: var(--sb-primary, #0d6efd);
}

/* ── Empty state ── */
.navbar-popover-empty {
    padding: 28px 16px;
    text-align: center;
    color: #adb5bd;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.navbar-popover-empty i {
    font-size: 1.5rem;
}

/* ── Notification Items ── */
.navbar-notif-list {
    max-height: 260px;
    overflow-y: auto;
}

.navbar-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.navbar-notif-item:hover {
    background: #f8f9fa;
}

.navbar-notif-item i {
    color: var(--sb-primary, #0d6efd);
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.navbar-notif-item .notif-text {
    font-size: 13px;
    color: #212529;
    line-height: 1.4;
    white-space: normal;
}

.navbar-notif-item .notif-time {
    font-size: 11px;
    color: #adb5bd;
    margin-top: 2px;
}

/* ── Support Dialog — industry card style ── */
.navbar-support-popover {
    width: 280px;
}

.navbar-support-badge {
    font-size: 11px;
    font-weight: 500;
    color: #198754;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.navbar-support-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #212529;
    transition: background 0.1s ease;
}

.navbar-support-row:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: #212529;
}

.navbar-support-icon,
.navbar-support-icon-wa {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.navbar-support-icon {
    background: #f0f0f0;
    color: #495057;
}

.navbar-support-icon-wa {
    background: #e8f5e9;
    color: #25D366;
}

.navbar-support-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.navbar-support-info span {
    font-size: 13px;
    font-weight: 500;
    color: #212529;
}

.navbar-support-info small {
    font-size: 12px;
    color: #6c757d;
}

.navbar-support-wa {
    border-bottom: 1px solid #f0f0f0;
}

.navbar-support-arrow {
    margin-left: auto;
    color: #adb5bd;
    font-size: 12px;
}

/* ── Broadcast Dialog ── */
.navbar-broadcast-popover {
    width: 320px;
}

.navbar-broadcast-body {
    padding: 4px 0;
}

.broadcast-option {
    border-bottom: 1px solid #f0f0f0;
}

.broadcast-option:last-child {
    border-bottom: none;
}

.broadcast-option-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 16px;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.broadcast-option-btn:hover {
    background: #f8f9fa;
}

.broadcast-option-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.broadcast-option-left i {
    font-size: 16px;
    color: var(--sb-primary, #0d6efd);
    width: 20px;
    text-align: center;
}

.broadcast-option-left span {
    font-size: 13px;
    font-weight: 500;
    color: #212529;
}

.broadcast-chevron {
    font-size: 11px;
    color: #adb5bd;
    transition: transform 0.25s ease;
}

.broadcast-option.open .broadcast-chevron {
    transform: rotate(180deg);
}

.broadcast-input-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.broadcast-option.open .broadcast-input-wrap {
    max-height: 100px;
}

.broadcast-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 12px;
}

.broadcast-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease;
    font-family: inherit;
}

.broadcast-input:focus {
    border-color: var(--sb-primary, #0d6efd);
}

.broadcast-send-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: var(--sb-primary, #0d6efd);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.broadcast-send-btn:hover {
    background: #0b5ed7;
}

.broadcast-sent-msg {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 0 16px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #198754;
}

.broadcast-sent-msg i {
    font-size: 13px;
}

.broadcast-sent-msg.show {
    display: flex;
}

/* ── Profile / School Info Popover ── */
.navbar-profile-popover {
    width: 280px;
}

.navbar-school-info .navbar-profile-menu-item span {
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

.navbar-profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-profile-menu {
    padding: 4px 0;
}

.navbar-profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #212529;
    text-decoration: none;
    transition: background 0.1s ease;
}

.navbar-profile-menu-item:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: #212529;
}

.navbar-profile-menu-item i {
    font-size: 15px;
    color: #6c757d;
    width: 18px;
    text-align: center;
}

.navbar-profile-logout {
    color: #dc3545;
}

.navbar-profile-logout:hover {
    background: #fff5f5;
    color: #dc3545;
}

.navbar-profile-logout i {
    color: #dc3545;
}


.student-search-container {
    position: relative;
    max-width: 250px;
}

.student-search-container .search_input {
    max-width: 266px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    font-size: 14px;
}

.student-search-container .search-icon {
    position: absolute;
    width: 22px;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

#suggestions {
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    background-color: white;
    width: 250px;
}

#suggestions ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#suggestions li {
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 1px solid rgb(192, 192, 192);
    width: 250px;
    white-space: nowrap;
    overflow-x: scroll;
}

#suggestions li:hover {
    background-color: #eee;
}

.del-icon {
    height: 20px;
}

.heading_container {
    height: min-content;
}

.clr-circle {
    width: 15px;
    height: 15px;
    /* background-color: green; */
    border-radius: 50%;
    margin-right: 0px;
}

/* Dashboard Title */
.dashboard-title-wrap {
    width: 100%;
    margin: auto auto;
}

.detail-cont {
    background-color: white;
    border-radius: 8px;
}

.doc-list-item {
    font-size: 14px;
}

.list-user-name {
    width: 100px;
    overflow-x: scroll;
    margin: auto 0px;
    white-space: nowrap;
    font-size: 14px;
}

.main_content_wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* List Page Start */
.list-detail-wrapper {
    flex: 1;
    display: flex;
    gap: 10px;
    padding: 10px;
    margin: 0;
}

.main_list_container,
.element_details_container {
    flex: 1;
    overflow-y: auto;
    white-space: nowrap;
}

.main_list_container>*,
.element_details_container>* {
    max-width: 100%;
    /* Ensure child elements do not exceed the container width */
    box-sizing: border-box;
    /* Include padding and border in the element's total width */
}

.main_list_container {
    grid-column: 2;
    grid-row: 3 / 4;
}

.list_page_title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0.2px;
    padding: 10px 12px 0;
    display: flex;
    justify-content: space-between;
    z-index: 9;
    align-items: center;
    width: 100%;
    margin: 0;
}

/* .list_wrapper{
     margin: 24px 0px; 
} */
.elem_card {
    max-height: 180px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    margin-bottom: 4px;
}

.view-all-btn-div {
    text-align: center;
}

.view-all-btn {
    width: 160px;
    height: 32px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

.wrapper-div {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
}

/* List Page End *0/

/* LEement Details Start */
.element_details_container {
    width: -webkit-fill-available;
    /* background-color: white; */
    /* height: 100vh;
    flex:1;
    overflow-y: scroll; */
    /* margin-right: 10px; */
    /* height: 71vh;
    overflow-y: scroll; */


}

/* LEement Details Ens */


/* login CSS start */

/* ── Full-page wrapper ── */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--sb-light-gray, #f8f9fa);
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Left Panel – branded hero ── */
.login-left-panel {
    flex: 1 1 70%;
    background: linear-gradient(-45deg, #e7f1ff, #a3c4f9, #5b8def, #7baaf5, #c4dafc, #4285F4);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 100% 0%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.login-left-panel::before {
    content: '';
    position: absolute;
    top: -12%;
    left: -8%;
    width: 30%;
    height: 45%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb1 6s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, 20px) scale(1.1); }
}

.login-left-panel::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb2 7s ease-in-out infinite;
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-25px, -15px) scale(1.15); }
}

.login-left-logo {
    position: relative;
    z-index: 1;
    background: var(--sb-white, #ffffff);
    border-radius: 10px;
    padding: 20px 32px;
    box-shadow: 0 8px 32px rgba(13, 110, 253, 0.12);
}

.login-left-logo img {
    width: 160px;
    height: auto;
    display: block;
}

/* ── Right Panel – form area ── */
.login-right-panel {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: var(--sb-white, #ffffff);
}

.login-form-wrapper {
    width: 100%;
    max-width: 380px;
}

/* Logo at top of form */
.login-logo-top {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.login-logo-top img {
    width: 160px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}

/* Title & subtitle */
.login-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--sb-text-dark, #212529);
    text-align: center;
    margin: 0 0 6px;
    line-height: 1.3;
}

.login-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: var(--sb-text-muted, #6c757d);
    text-align: center;
    margin: 0 0 32px;
}

/* Form */
.login-form {
    margin: 0;
    width: 100%;
}

.login-field {
    margin-bottom: 20px;
}

.login-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--sb-text-dark, #212529);
    margin-bottom: 6px;
}

.login-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--sb-text-dark, #212529);
    background: var(--sb-white, #ffffff);
    border: 1.5px solid var(--sb-border, #dee2e6);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input::placeholder {
    color: #adb5bd;
    font-size: 13px;
}

.login-input:focus {
    border-color: var(--sb-primary, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

/* Password field with toggle */
.login-password-wrapper {
    position: relative;
}

.login-password-wrapper .login-input {
    padding-right: 48px;
}

.login-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sb-text-muted, #6c757d);
    font-size: 18px;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.login-password-toggle:hover {
    color: var(--sb-text-dark, #212529);
}

/* Error message */
.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: #dc3545;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.login-error i {
    font-size: 16px;
    flex-shrink: 0;
}

/* Submit button */
.login-btn {
    width: 100%;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    background: var(--sb-primary, #0d6efd);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    margin-top: 8px;
    letter-spacing: 0.2px;
}

.login-btn:hover {
    background: var(--sb-primary-hover, #0b5ed7);
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.3);
}

.login-btn:active {
    transform: scale(0.985);
}

/* Maintenance overlay */
.maintenance-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.maintenance-box {
    background: var(--sb-white, #ffffff);
    padding: 32px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .login-right-panel {
        flex: 0 0 40%;
        max-width: 40%;
        padding: 40px 32px;
    }

    .login-left-panel {
        flex: 1 1 50%;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left-panel {
        flex: none;
        min-height: 200px;
    }

    .login-left-logo {
        padding: 16px 28px;
        border-radius: 16px;
    }

    .login-left-logo img {
        width: 120px;
    }

    .login-right-panel {
        flex: none;
        max-width: 100%;
        padding: 32px 24px 48px;
    }

    .login-form-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .login-left-panel {
        min-height: 160px;
    }

    .login-left-logo {
        padding: 14px 22px;
    }

    .login-left-logo img {
        width: 100px;
    }

    .login-right-panel {
        padding: 24px 20px 40px;
    }

    .login-title {
        font-size: 20px;
    }

    .login-input {
        height: 44px;
    }

    .login-btn {
        height: 46px;
        font-size: 14px;
    }
}

/* login CSS end */

/* dashboard styling start */
#charts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

#speed-chart,
#fleet-status-chart {
    width: 45%;
    margin: 20px 0;
}

.label {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.3px;
    text-align: left;
    color: var(--PM, #4285F4);
}

.value {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.3px;
    text-align: left;
}

/* .dashboard-chart-cont{
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background-color: #e9ecef;
    margin-bottom: 16px;

}
.chart-container{
    width: 100%;
    min-width: 541px; 
    height: 304px;
    overflow: hidden;
    border-radius: 20px ;
    box-shadow: 0px 4px 4px 0px #00000040;
    background-color:white;

}    */
.dash_title_btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dashboard Stats Cards */
.dash-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dash-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 0.75rem;
    transition: box-shadow 0.2s ease;
    margin-bottom: 0;
}

.dash-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dash-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 1px;
}

.dash-card-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0;
}

/* Dashboard Stats Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.dashboard-stats-item {
    min-width: 0;
}

/* Dash Card Icon Color Variants — light tinted bg + matching text */
.dash-icon-blue {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.dash-icon-green {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.dash-icon-teal {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.dash-icon-amber {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.dash-icon-red {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Dash Card Split Stats (two values in one card) */
.dash-card-split {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.dash-split-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.05rem;
    font-weight: 700;
}

.dash-split-item i {
    font-size: 0.8rem;
}

.dash-split-divider {
    width: 1px;
    height: 18px;
    background-color: #dee2e6;
    margin: 0 2px;
}

/* Graphs styling start */

/*graph expand collapse start */

.graph-container {
    width: auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    background: #ffffff;
    padding: 10px;
    overflow-x: auto;
}

#graphContent {
    overflow: hidden;
    transition: max-height 0.4s ease;
    max-height: 3600px;
}

.graph-grid {
    display: grid;
    gap: 10px;
    width: 100%;
    grid-template-columns: 1fr;
    padding: 5px;
    grid-auto-rows: minmax(0, 320px);
    box-sizing: border-box;
}

.collapse-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.collapse-left {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    min-width: 0;
}

.collapse-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}

.last-updated-time-for-graph {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
    margin-left: 10px;
}

.refresh-countdown-pill {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #4285F4;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .collapse-header {
        align-items: flex-start;
    }

    .collapse-meta {
        justify-content: flex-start;
    }

    .last-updated-time-for-graph {
        font-size: 12px;
        text-align: left;
    }

    .refresh-countdown-pill {
        margin-left: 0;
    }
}

.collapse-arrow {
    transition: transform 0.3s ease;
    /* margin-left: 8px; */
    font-size: 20px;
}

.collapse-arrow.rotate {
    transform: rotate(180deg);
}

/* grapgh collapse expand end */

.graph-wrapper {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    background: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.graph-scroll {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Scrollable chart containers (Distance, Battery, Speed) - scrollbar hidden by default, visible on hover */
.graph-scroll-hover {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.graph-scroll-hover .graph-scroll-inner {
    width: 100%;
    height: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.graph-scroll-hover .graph-scroll-inner::-webkit-scrollbar {
    height: 0;
    display: none;
}

/* Thin overlay scrollbar that appears on card hover */
.graph-scroll-hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.graph-scroll-hover:hover .graph-scroll-inner {
    scrollbar-width: thin;
    scrollbar-color: #a0a0a0 #f1f1f1;
    -ms-overflow-style: auto;
}

.graph-scroll-hover:hover .graph-scroll-inner::-webkit-scrollbar {
    height: 6px;
    display: block;
}

.graph-scroll-hover:hover .graph-scroll-inner::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.graph-scroll-hover:hover .graph-scroll-inner::-webkit-scrollbar-thumb {
    background: #a0a0a0;
    border-radius: 5px;
}

.graph-scroll-hover:hover .graph-scroll-inner::-webkit-scrollbar-thumb:hover {
    background: #808080;
}

.graph-box {
    min-height: 250px;
    height: 250px;
}

.graph-title {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .graph-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .graph-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}


/* graph style end */

.form_wrapper {
    max-height: 75vh;
    overflow-y: scroll;
}

/* for filters - start*/
.filter-container {
    position: relative;
    display: inline-block;
}

.filter-btn {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.filter-dropdown {
    position: absolute;
    right: 0;
    top: 50px;
    width: 420px;
    background: white;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 14px;
    border-radius: 8px;
    display: none;
    z-index: 1065;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 6px;
}

.filter-dropdown label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 0px;
}

.apply-btn {
    margin-top: 12px;
    width: 100%;
    padding: 8px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.checkbox-group {
    display: flex;
    /* flex-wrap: wrap; */
    flex-direction: column;
    gap: 2px;
    height: 82px;
    overflow-y: auto;
    padding: 2px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.checkbox-group label {
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    cursor: pointer;
}

/* for filters - ends*/


/* === LOGOUT MODAL === */
.modal-backdrop {
    z-index: 19999 !important;
}

.modal {
    z-index: 20001 !important;
}

.logout-modal-centered {
    z-index: 20002 !important;
}

.logout-modal-dialog {
    max-width: 360px;
}

.logout-modal-content {
    border: none;
    border-radius: 16px;
    padding: 32px 28px 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
}

.logout-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s ease;
}

.logout-modal-close:hover {
    color: #212529;
}

.logout-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.logout-modal-icon i {
    font-size: 24px;
    color: #dc3545;
}

.logout-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 6px;
}

.logout-modal-desc {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 24px;
    line-height: 1.5;
}

.logout-modal-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.logout-btn-cancel,
.logout-btn-confirm {
    flex: 1;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logout-btn-cancel {
    background: #f0f0f0;
    color: #212529;
    border: none;
}

.logout-btn-cancel:hover {
    background: #e2e2e2;
}

.logout-btn-confirm {
    background: #dc3545;
    color: #fff;
    border: none;
}

.logout-btn-confirm:hover {
    background: #bb2d3b;
    color: #fff;
    text-decoration: none;
}

/* dashboard styling end */

@media(max-width: 1399px) {
    .form_wrapper {
        max-height: 73vh;
    }
}



/* Mobile sidebar responsive */
@media (max-width: 767.98px) {
    .main_container>.sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        width: 260px;
        z-index: 1050;
        transition: left 0.3s ease;
        box-shadow: none;
    }

    .main_container>.sidebar.show {
        left: 0;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1040;
    }

    .sidebar-toggle {
        background: none;
        border: none;
        font-size: 22px;
        padding: 4px 10px;
        cursor: pointer;
        color: #333;
    }

    .sidebar-close {
        background: none;
        border: none;
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
        color: #333;
        padding: 4px 10px;
    }

    .navbar_container {
        padding: 0 12px;
        height: 56px;
    }

    .navbar-profile-name {
        display: none;
    }

    .navbar-profile-btn {
        padding: 6px;
    }

    .navbar-dropdown {
        width: calc(100vw - 24px);
        right: -8px;
    }

    .navbar-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .navbar-avatar {
        width: 32px;
        height: 32px;
    }

    .navbar-dropdown {
        width: calc(100vw - 20px);
    }

    .main_container {
        height: auto;
        min-height: 100vh;
    }

    .main_content_wrapper {
        height: auto;
        overflow-y: visible;
    }


    .dash-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 50%;
    }

    .dash-card-count {
        font-size: 1.2rem;
    }

    .dash-card-title {
        font-size: 0.8rem;
    }

    .dash-card {
        padding: 0.75rem;
    }

    .dash-split-item {
        font-size: 0.95rem;
    }

    .dash-split-item i {
        font-size: 0.7rem;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .dash-card-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        border-radius: 50%;
    }

    .dash-card-count {
        font-size: 1.1rem;
    }

    .dash-card-title {
        font-size: 0.75rem;
    }

    .dash-card {
        padding: 0.6rem;
    }

    .dash-card .ml-3 {
        margin-left: 0.5rem !important;
    }

    .dash-split-item {
        font-size: 0.85rem;
    }

    .dash-split-item i {
        font-size: 0.65rem;
    }

    .dash-card-split {
        gap: 4px;
    }
}

/* Very narrow screens (< 360px) */
@media (max-width: 360px) {
    .dash-card-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .dash-card-count {
        font-size: 1rem;
    }

    .dash-card .ml-3 {
        margin-left: 0.35rem !important;
    }

    .dash-split-item {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dash-card-icon {
        width: 44px;
        height: 44px;
    }

    .navbar-profile-name {
        font-size: 13px;
    }

    .navbar-dropdown {
        width: 300px;
    }
}



@media(max-width: 1380px) {
    .dash-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .dash-card-count {
        font-size: 1.3rem;
    }
}



/* Scroll container */
.scroll-container {
    max-height: 520px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
    margin-bottom: 4px;
    position: relative;
}

.scroll-container.show-scrollbar::-webkit-scrollbar {
    width: 0;
}

.scroll-container.show-scrollbar:hover::-webkit-scrollbar {
    width: 6px;
}

.scroll-container.show-scrollbar:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.scroll-container.show-scrollbar:hover::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-container table td * {
    overflow: hidden;
}

.scroll-container.show-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.scroll-container.show-scrollbar:hover {
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.maintenance-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-box {
    background: #fff;
    padding: 20px 28px;
    max-width: 440px;
    width: 90%;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.maintenance-box h2 {
    color: #dc3545;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

/* ===== REUSABLE DATA TABLE ===== */
.data-table-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
    background: #fafbfc;
    text-align: left;
}

.data-table tbody tr {
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.15s ease;
    cursor: pointer;
}

.data-table tbody tr:hover {
    background: #f0f4ff;
}

.data-table tbody tr.active-row {
    background: #e8f0fe;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
    vertical-align: middle;
}

.table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.table-route-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
}

.table-route-badge:hover {
    background: #d2e3fc;
    color: #1a73e8;
}

.table-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.table-action-btn {
    background: none;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.15s ease;
    line-height: 1;
}

.table-action-btn.edit {
    color: #1a73e8;
}

.table-action-btn.edit:hover {
    background: #e8f0fe;
}

.table-action-btn.delete {
    color: #dc3545;
}

.table-action-btn.delete:hover {
    background: #fce4e6;
}

.table-footer {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
    color: #666;
}

.table-footer strong {
    color: #1a73e8;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state p {
    margin: 12px 0;
    font-size: 16px;
}

/* ===== OVERLAY SECTIONS ===== */
/* Used by overlay pages (vehicles, students, drivers, attendants) */
.overlay-section {
    display: none;
}

.overlay-section.active {
    display: block;
}

/* ===== OVERLAY CARD ===== */
.overlay-card {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 310px;
    max-height: 72vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
}

.overlay-card.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    animation: overlaySlideUp 0.2s ease forwards;
}

@keyframes overlaySlideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.overlay-card-header {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    background: #fafbfc;
    border-radius: 8px 8px 0 0;
}

.overlay-card-header h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.overlay-card-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 2px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.overlay-card-close:hover {
    color: #333;
    background: #f0f0f0;
}

.overlay-card-body {
    padding: 8px 12px;
    overflow-y: auto;
    flex: 1;
}

.overlay-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.overlay-detail-item {
    padding: 3px 0;
}

.overlay-detail-item .overlay-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6c757d;
    margin-bottom: 1px;
    font-weight: 500;
}

.overlay-detail-item .overlay-value {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    word-break: break-word;
    line-height: 1.3;
}

.overlay-form .form-group {
    margin-bottom: 8px;
}

.overlay-form label {
    font-size: 10px;
    font-weight: 600;
    color: #555;
    margin-bottom: 2px;
    display: block;
}

.overlay-form .form-control {
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.overlay-form .form-control:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.12);
    outline: none;
}

.overlay-form .form-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f2f5;
}

@media (max-width: 576px) {
    .overlay-card {
        width: calc(100% - 16px);
        right: 8px;
        bottom: 8px;
        max-height: 68vh;
    }

    .overlay-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE TOOLBAR (Search + Actions) ===== */
.page-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-search {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 480px;
}

.toolbar-search input {
    width: 100%;
    padding: 6px 34px 6px 10px;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.toolbar-search input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.toolbar-search input::placeholder {
    color: #9e9e9e;
}

.toolbar-search .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.5;
    pointer-events: none;
}

.toolbar-search .suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
}

.toolbar-search .suggestions.show {
    display: block;
}

.toolbar-search .suggestions ul {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.toolbar-search .suggestions li {
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.toolbar-search .suggestions li:hover {
    background: #f5f5f5;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.toolbar-btn:active {
    transform: scale(0.98);
}

.toolbar-btn-primary {
    background: #1a73e8;
    color: #fff;
}

.toolbar-btn-primary:hover {
    background: #1557b0;
}

.toolbar-btn-secondary {
    background: #f1f3f4;
    color: #3c4043;
}

.toolbar-btn-secondary:hover {
    background: #e8eaed;
}

.toolbar-btn i {
    font-size: 16px;
}

/* Filter dropdown toggle */
.toolbar-filter {
    position: relative;
}

.toolbar-filter .filter-dropdown {
    top: calc(100% + 8px);
    right: 0;
}

@media (max-width: 576px) {
    .page-toolbar {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .toolbar-search {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .toolbar-search input {
        padding: 9px 36px 9px 12px;
        font-size: 13px;
    }

    .toolbar-actions {
        width: auto;
        justify-content: flex-start;
        gap: 6px;
        flex-shrink: 0;
    }

    .toolbar-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 8px;
    }

    .toolbar-btn i {
        font-size: 15px;
        margin: 0;
    }

    .toolbar-btn-text {
        display: none;
    }
}

/* ── Download Apps Page ── */
.download-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 16px 4px;
}

.app-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e4e8ee;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.app-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Colored header area */
.app-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 20px;
    position: relative;
}

.app-card-header--blue {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 100%);
}

.app-card-header--indigo {
    background: linear-gradient(135deg, #eae6ff 0%, #d8d0fb 100%);
}

.app-card-header--teal {
    background: linear-gradient(135deg, #e0f5f0 0%, #c8ede4 100%);
}

.app-card-icon {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card body */
.app-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-align: center;
}

.app-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2233;
    margin: 0;
}

.app-card-desc {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    white-space: normal;
    max-width: 300px;
}

/* Action buttons row */
.app-card-actions {
    display: flex;
    gap: 10px;
    margin: 6px 0 2px;
}

.app-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--sb-primary, #0d6efd);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.app-action-btn:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.25);
}

.app-action-btn--outline {
    color: var(--sb-primary, #0d6efd);
    background: transparent;
    border: 1.5px solid var(--sb-primary, #0d6efd);
}

.app-action-btn--outline:hover {
    background: var(--sb-primary-light, #e7f1ff);
    box-shadow: none;
    transform: translateY(-1px);
}

/* Store badges */
.app-card-badges {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.store-badge-link {
    display: flex;
    align-items: center;
    height: 40px;
}

.store-badge {
    height: 40px;
    width: 135px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 6px;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.store-badge:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

/* QR Modal */
.qr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.qr-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.qr-modal {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    text-align: center;
    position: relative;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    transform: scale(0.92);
    transition: transform 0.2s ease;
}

.qr-modal-overlay.show .qr-modal {
    transform: scale(1);
}

.qr-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.qr-modal-close:hover {
    color: #212529;
}

.qr-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2233;
    margin-bottom: 16px;
}

.qr-modal-img {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.qr-modal-img img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.qr-modal-hint {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
}

@media (max-width: 992px) {
    .download-apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .download-apps-grid {
        grid-template-columns: 1fr;
    }

    .app-card {
        padding: 20px 16px;
    }
}