* {
    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: var(--sb-bg);
    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: var(--sb-text-primary);
}

.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: var(--sb-link-color);
    text-decoration: none;
    cursor: pointer;
}

/* Global interactive focus normalization:
   prevent browser/Bootstrap black focus border on click,
   keep a clean accessible ring for keyboard navigation. */
button:focus,
button:active:focus,
.btn:focus,
.btn.focus,
[role="button"]:focus,
summary:focus,
.toolbar-btn:focus,
.rd-action-btn:focus,
.ue-section-trigger:focus {
    outline: none !important;
    box-shadow: none !important;
}

button:focus-visible,
.btn:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible,
.toolbar-btn:focus-visible,
.rd-action-btn:focus-visible,
.ue-section-trigger:focus-visible {
    outline: 2px solid var(--sb-primary) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px var(--sb-primary-subtle) !important;
}

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;
    max-width: 100vw;
    display: flex;
    margin: auto;
    gap: 0px;
    overflow: visible !important;
}

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

.navbar_container {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: var(--sb-navbar-bg);
    display: flex;
    justify-content: space-between;
    height: 52px;
    min-height: 52px;
    flex-shrink: 0;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--sb-navbar-border);
    overflow-x: auto;
    overflow-y: visible;
}

/* Force navbar visible on all pages when the container is present. */
.main_container .main_content_wrapper .navbar_container {
    display: flex !important;
    position: sticky !important;
    top: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.navbar_container.navbar-popover-open {
    overflow: visible;
}

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

.navbar-secondary-actions {
    display: contents;
}

/* 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: var(--sb-text-secondary);
    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;
}

/* ── Theme Toggle Button ── */
.theme-toggle-btn {
    position: relative;
}

[data-theme="dark"] .theme-toggle-btn {
    background: var(--sb-primary-light);
    color: var(--sb-warning);
}

/* ── 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-primary);
}

.navbar-chevron {
    font-size: 10px;
    color: var(--sb-text-secondary);
    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: var(--sb-popover-bg);
    border-radius: 10px;
    box-shadow: var(--sb-shadow-popover);
    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 var(--sb-popover-border);
}

.navbar-popover-header strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--sb-text-primary);
}

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

.navbar-popover-divider {
    height: 1px;
    background: var(--sb-popover-border);
    margin: 4px 0;
}

.navbar-popover-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-top: 1px solid var(--sb-popover-border);
    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: var(--sb-text-muted);
    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: var(--sb-surface-hover);
}

.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: var(--sb-text-muted);
    margin-top: 2px;
}

/* ── Support Dialog — industry card style ── */
.navbar-support-popover {
    width: 280px;
    border: 1px solid var(--sb-popover-border);
}

.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: var(--sb-popover-border);
    color: var(--sb-text-secondary);
}

.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: var(--sb-text-primary);
}

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

.navbar-support-wa {
    border-bottom: 1px solid var(--sb-popover-border);
}

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

.navbar-support-links-grid {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid var(--sb-popover-border);
}

.navbar-support-mini-link {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    background: #ffffff;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.navbar-support-mini-link:hover {
    text-decoration: none;
    background: #f8f9fa;
    border-color: #dee2e6;
}

.navbar-support-mini-link small {
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    line-height: 1;
}

.navbar-support-mini-logo {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo-anydesk,
.navbar-logo-meet {
    width: 24px;
    height: 24px;
    display: block;
}

/* ── Broadcast Dialog ── */
.navbar-broadcast-popover {
    width: 320px;
    border: 1px solid var(--sb-popover-border);
}

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

.broadcast-option {
    border-bottom: 1px solid var(--sb-popover-border);
}

.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: var(--sb-surface-hover);
}

.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: var(--sb-text-primary);
}

.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: 220px;
}

.broadcast-input-group {
    display: grid;
    grid-template-columns: 1fr 36px;
    grid-template-areas:
        'title send'
        'body send';
    gap: 8px;
    padding: 0 16px 12px;
    align-items: stretch;
}

.broadcast-title-input {
    grid-area: title;
}

.broadcast-body-input {
    grid-area: body;
    min-height: 72px;
    resize: vertical;
    line-height: 1.35;
}

.broadcast-input {
    width: 100%;
    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 {
    grid-area: send;
    width: 34px;
    height: 34px;
    min-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-send-btn.is-loading {
    opacity: 0.85;
    cursor: wait;
}

.broadcast-loader {
    animation: broadcast-spin 0.8s linear infinite;
}

@keyframes broadcast-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.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.is-loading {
    color: var(--sb-primary, #0d6efd);
}

.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: var(--sb-text-primary);
    text-decoration: none;
    transition: background 0.1s ease;
}

.navbar-profile-menu-item:hover {
    background: var(--sb-surface-hover);
    text-decoration: none;
    color: var(--sb-text-primary);
}

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

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

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

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


.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 var(--sb-input-border);
    background-color: var(--sb-input-bg);
    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: var(--sb-surface-hover);
}

.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: var(--sb-card-bg);
    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: center;
    justify-content: center;
    background: linear-gradient(-45deg, #e7f1ff, #a3c4f9, #5b8def, #7baaf5, #c4dafc, #4285F4);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .login-wrap {
    background-image: linear-gradient(-45deg, #0d1117, #161b22, #0f2b54, #182845, #0d1117);
    /* By using background-image instead of background, we preserve the background-size and animation properties */
}

@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-wrap::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-wrap::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);
    }
}

.maintenance-active.login-wrap,
.maintenance-active.login-wrap::before,
.maintenance-active.login-wrap::after {
    animation-play-state: paused;
}

.login-wrap * {
    box-sizing: border-box;
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    padding: 24px;
    z-index: 10;
}

/* ── Login Card – form area ── */
.login-card {
    margin: auto;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

[data-theme="dark"] .login-card {
    background: rgba(22, 27, 34, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* 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;
}

.login-logo-dark {
    display: none;
}

[data-theme="dark"] .login-logo-light {
    display: none;
}

[data-theme="dark"] .login-logo-dark {
    display: block;
}

/* 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;
}

[data-theme="dark"] .login-title {
    color: var(--sb-text-primary, #ffffff);
}

.login-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: #2a2d30;
    text-align: center;
    margin: 0 0 32px;
}

[data-theme="dark"] .login-subtitle {
    color: #ced4da;
}

/* 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;
}

[data-theme="dark"] .login-label {
    color: var(--sb-text-primary, #ffffff);
}

.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: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    outline: none;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Fix for browser autofill background */
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1) inset !important;
    -webkit-text-fill-color: var(--sb-text-dark, #212529) !important;
    transition: background-color 5000s ease-in-out 0s;
}

[data-theme="dark"] .login-input {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--sb-text-primary, #ffffff);
}

[data-theme="dark"] .login-input:-webkit-autofill,
[data-theme="dark"] .login-input:-webkit-autofill:hover,
[data-theme="dark"] .login-input:-webkit-autofill:focus,
[data-theme="dark"] .login-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(0, 0, 0, 0.2) inset !important;
    -webkit-text-fill-color: var(--sb-text-primary, #ffffff) !important;
}

.login-input::placeholder {
    color: #495057;
    font-size: 13px;
    opacity: 0.8;
}

[data-theme="dark"] .login-input::placeholder {
    color: #ced4da;
    opacity: 0.9;
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: var(--sb-primary, #0d6efd);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

[data-theme="dark"] .login-input:focus {
    background: rgba(0, 0, 0, 0.4) !important;
}

/* 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;
}

[data-theme="dark"] .login-password-toggle {
    color: var(--sb-text-muted, #a0aab2);
}

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

[data-theme="dark"] .login-password-toggle:hover {
    color: var(--sb-text-primary, #ffffff);
}

/* Error message */
.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: #f87171;
    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);
}

.login-support {
    margin-top: 18px;
    text-align: center;
}

.login-support-text {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
}

[data-theme="dark"] .login-support-text {
    color: #ced4da;
}

.login-support-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.login-support-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--sb-primary, #0d6efd);
    text-decoration: none;
}

.login-support-link:hover {
    color: var(--sb-primary-hover, #0b5ed7);
    text-decoration: underline;
}

.login-support-divider {
    color: #ced4da;
    font-size: 12px;
    line-height: 1;
}

/* ═══ Maintenance Overlay ═══ */
.maintenance-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.54);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    animation: maintOverlayIn 0.4s ease-out;
}

@keyframes maintOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Card ── */
.maintenance-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    padding: 36px 32px 28px;
    box-shadow:
        0 8px 40px rgba(15, 23, 42, 0.18),
        0 1.5px 6px rgba(15, 23, 42, 0.06);
    text-align: center;
    animation: maintCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes maintCardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

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


/* ── Lottie ── */
.maintenance-lottie {
    width: 90%;
    max-width: 520px;
    height: 320px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    contain: layout paint size;
    filter: drop-shadow(0 8px 20px rgba(12, 38, 89, 0.08));
}

.maintenance-lottie canvas,
.maintenance-lottie svg {
    width: 100% !important;
    height: 100% !important;
    transform: scale(var(--maintenance-animation-zoom));
    transform-origin: center center;
}

.maintenance-lottie--fallback {
    min-height: 140px;
    border-radius: 12px;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

/* ── Divider ── */
.maintenance-divider {
    width: 60px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #0d6efd, #60a5fa);
    margin: 0 auto 18px;
    opacity: 0.7;
}

/* ── Contact Section ── */
.maintenance-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.maintenance-contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.maintenance-contact-heading {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin: 0 0 4px;
}

.maintenance-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #1e293b;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.maintenance-contact-item:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.08);
    text-decoration: none;
    color: #1e293b;
}

.maintenance-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d6efd, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.maintenance-contact-icon--email {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.maintenance-contact-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.maintenance-contact-label {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 2px;
}

.maintenance-contact-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.maintenance-contact-arrow {
    margin-left: auto;
    font-size: 11px;
    color: #cbd5e1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.maintenance-contact-item:hover .maintenance-contact-arrow {
    color: #0d6efd;
    transform: translateX(2px);
}

/* ── Overlay Responsive ── */
@media (max-width: 480px) {
    .maintenance-overlay {
        padding: 16px;
    }

    .maintenance-card {
        padding: 24px 18px 20px;
        border-radius: 16px;
    }

    .maintenance-lottie {
        --maintenance-animation-zoom: 1.12;
        width: 90%;
        max-width: 300px;
        height: 240px;
    }

    .maintenance-contact-row {
        grid-template-columns: 1fr;
    }

    .maintenance-contact-item {
        padding: 8px 10px;
        gap: 10px;
    }

    .maintenance-contact-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 13px;
    }

    .maintenance-contact-value {
        font-size: 13px;
    }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .login-card {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 16px;
    }

    .login-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .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;
    opacity: var(--sb-dashboard-icon-opacity, 1);
}

.dash-card {
    background-color: var(--sb-card-bg);
    border: 1px solid var(--sb-card-border);
    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: var(--sb-text-secondary);
    margin-bottom: 1px;
}

.dash-card-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sb-text-primary);
    margin-bottom: 0;
}

/* Dashboard Stats Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 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: #f87171;
}

.dash-icon-purple {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.dash-icon-indigo {
    background-color: rgba(102, 16, 242, 0.1);
    color: #6610f2;
}

/* 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: var(--sb-border);
    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: var(--sb-card-bg);
    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: auto;
    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 var(--sb-graph-border);
    background: var(--sb-card-bg);
    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: 280px;
    height: 280px;
}

.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;
    }
}


/* ── Bottom Status Bar (VS Code Style) ── */
.sb-status-bar {
    position: fixed;
    bottom: 0;
    left: 220px;
    /* Offset by sidebar width */
    width: calc(100% - 220px);
    height: 28px;
    background-color: #007acc;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    z-index: 1040;
    padding: 0 10px;
}

.sb-status-bar-item {
    display: flex;
    align-items: center;
    padding: 0 8px;
    height: 100%;
    cursor: pointer;
    transition: background-color 0.15s;
    color: #fff;
}

.sb-status-bar-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.sb-status-bar-item i {
    font-size: 14px;
    margin-right: 4px;
}

.sb-status-badge {
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 0 5px;
    font-size: 10px;
    margin-left: 6px;
    font-weight: 700;
}

/* ── Navbar Notification Center ── */
.sb-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    color: #fff;
    background: #ef4444;
    border-radius: 50px;
    pointer-events: none;
    animation: sb-badge-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sb-badge-pop {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}

.sb-notif-tab {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: var(--sb-text-secondary, #6c757d);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sb-notif-tab:hover {
    background: rgba(66, 133, 244, 0.08);
    color: #4285F4;
}

.sb-notif-tab.active {
    background: #4285F4;
    color: #fff;
}

.sb-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--sb-border-light, #f1f5f9);
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.sb-notif-item:hover {
    background: rgba(66, 133, 244, 0.04);
    text-decoration: none;
    color: inherit;
}

.sb-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.sb-notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-text-primary, #1e293b);
    margin-bottom: 2px;
}

.sb-notif-desc {
    font-size: 11.5px;
    color: var(--sb-text-secondary, #64748b);
}

.sb-notif-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

.sb-notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--sb-text-secondary, #94a3b8);
    font-size: 13px;
}

.sb-notif-empty i {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    color: #20c997;
}

/* ── End Navbar Notification Center ── */

/* 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: var(--sb-surface);
    border: 1px solid var(--sb-border-card);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 14px;
    border-radius: 8px;
    display: none;
    z-index: 1065;
}

.filter-dropdown.show {
    display: block;
}

.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: #f87171;
}

.logout-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--sb-text-primary);
    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: #f87171;
    color: #fff;
    border: none;
}

.logout-btn-confirm:hover {
    background: #ef4444;
    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;
        min-height: 56px;
    }

    /* .navbar-right {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    } */
    #fullscreenBtn {
        display: none !important;
    }

    .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; */
    /* max-width: 99%;
     */
    max-height: 600px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    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;
}

/* (Old full-page maintenance styles removed — now handled by overlay in login section above) */

/* ===== REUSABLE DATA TABLE ===== */
.data-table-wrapper {
    background: var(--sb-card-bg);
    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: var(--sb-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--sb-table-border);
    white-space: nowrap;
    background: var(--sb-table-header-bg);
    text-align: left;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--sb-border-light);
    transition: background 0.15s ease;
    cursor: pointer;
}

.data-table tbody tr:hover {
    background: var(--sb-table-row-hover);
}

.data-table tbody tr.active-row {
    background: var(--sb-table-row-active);
}

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

.data-table tbody td {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--sb-text-body);
    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-route-badge-active {
    background: #e6f4ea;
    color: #1e7e34;
}

.table-route-badge-active:hover {
    background: #d8eee0;
    color: #166534;
}

.table-route-badge-inactive {
    background: #fce4e6;
    color: #f87171;
}

.table-route-badge-inactive:hover {
    background: #f8d7da;
    color: #b91c1c;
}

.route-stop-meta,
.route-search-empty,
.route-no-stops,
.stop-student-empty {
    color: #6c757d;
}

.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: #f87171;
}

.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: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
}

/* ===== 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: var(--sb-surface-raised);
    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 0 12px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.overlay-card-body::-webkit-scrollbar {
    width: 6px;
}

.overlay-card-body::-webkit-scrollbar-track {
    background: transparent;
}

.overlay-card-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 3px;
}

.overlay-card-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

.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 {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-bottom: 12px;
}

.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: sticky form actions (wrapper div) ── */
.overlay-form>.form-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: auto;
    margin-left: -12px;
    margin-right: -12px;
    padding: 10px 12px;
    background: #ffffff;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

/* ── Overlay: sticky Save Changes button (direct button element) ── */
.overlay-form>button[type="submit"] {
    position: sticky;
    bottom: 8px;
    z-index: 10;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* Retains its original btn-primary background and text color! */
}

@media (max-width: 767px) {
    .overlay-card {
        width: 100%;
        left: 0;
        right: 0;
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
        max-height: 50dvh;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    }

    .overlay-card::before {
        content: '';
        display: block;
        width: 36px;
        height: 5px;
        background: var(--sb-border-light, #dee2e6);
        border-radius: 100px;
        margin: 10px auto 4px;
    }

    .overlay-card.active {
        animation: overlayBottomSheetIn 0.3s cubic-bezier(0.32, 0.72, 0, 1) forwards;
    }

    @keyframes overlayBottomSheetIn {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

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

    .overlay-card-header {
        border-radius: 20px 20px 0 0;
        padding-top: 4px;
        border-bottom: none;
    }

    .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;
        width: 100%;
    }

    .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;

}

.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;
    }
}

/* Fix for transparent tooltip backgrounds in all charts */
.apexcharts-tooltip {
    background: var(--sb-popover-bg, #ffffff) !important;
    border: 1px solid var(--sb-border, #e0e0e0) !important;
    color: var(--sb-text-primary, #000000) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.apexcharts-tooltip-title {
    background: var(--sb-surface-raised, #f8f9fa) !important;
    border-bottom: 1px solid var(--sb-border, #e0e0e0) !important;
    color: var(--sb-text-primary, #000000) !important;
}

.apexcharts-xaxistooltip,
.apexcharts-yaxistooltip {
    background: var(--sb-popover-bg, #ffffff) !important;
    border: 1px solid var(--sb-border, #e0e0e0) !important;
    color: var(--sb-text-primary, #000000) !important;
}