/* ==========================================================
   SwiftBus Theme
   Reference-style Dashboard UI
   ========================================================== */


/* ==========================================================
   ROOT VARIABLES
   ========================================================== */

:root {

    /* -----------------------------------------
       Main Colors
    ----------------------------------------- */

    --navy-950: #06132f;
    --navy-900: #08163a;
    --navy-850: #0b1b45;
    --navy-800: #102453;
    --navy-700: #162d63;

    --blue-700: #2446e8;
    --blue-600: #3157f5;
    --blue-500: #3d6bff;
    --blue-400: #5d83ff;

    --green-500: #22c979;
    --green-400: #35d990;

    --purple-500: #9552ed;
    --purple-400: #aa68f5;

    --orange-500: #ff8a27;
    --orange-400: #ff9b3f;

    --pink-500: #ef477d;
    --teal-500: #13b9ad;

    /* -----------------------------------------
       Backgrounds
    ----------------------------------------- */

    --bg-body: #f5f8fd;
    --bg-card: #ffffff;
    --bg-soft: #f1f5fc;

    /* -----------------------------------------
       Borders
    ----------------------------------------- */

    --border-color: #e4eaf4;
    --border-light: #edf1f7;

    /* -----------------------------------------
       Text
    ----------------------------------------- */

    --text-dark: #102b60;
    --text-heading: #122e63;
    --text-body: #334d79;
    --text-muted: #7487a8;
    --text-light: #cbd6ef;

    /* -----------------------------------------
       Sizes
    ----------------------------------------- */

    --sidebar-width: 240px;
    --topbar-height: 56px;

    --radius-xl: 14px;
    --radius-lg: 11px;
    --radius-md: 9px;
    --radius-sm: 7px;

    /* -----------------------------------------
       Shadows
    ----------------------------------------- */

    --shadow-card:
        0 2px 10px rgba(24, 47, 90, 0.055);

    --shadow-hover:
        0 7px 22px rgba(24, 47, 90, 0.11);
}


/* ==========================================================
   RESET
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;

    margin: 0;
    padding: 0;

    overflow-x: hidden;
}

body {

    font-family: 'Inter', sans-serif;

    background: var(--bg-body);

    color: var(--text-body);

    font-size: 13px;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

img {
    max-width: 100%;
}


/* ==========================================================
   APP LAYOUT
   ========================================================== */

.app-wrapper {

    min-height: 100vh;

    width: 100%;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.sidebar {

    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: var(--sidebar-width);

    min-height: 100vh;

    z-index: 1000;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 18% 3%,
            rgba(89, 91, 255, 0.22),
            transparent 27%
        ),
        linear-gradient(
            180deg,
            #101f53 0%,
            #0b1a43 46%,
            #061431 100%
        );

    transition:
        transform 0.25s ease;
}


/* ==========================================================
   SIDEBAR BRAND
   ========================================================== */

.sidebar-brand {

    height: 74px;

    display: flex;
    align-items: center;

    padding: 8px 15px;

    flex-shrink: 0;
}

.brand-logo {

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #bf7aff;

    background: transparent;

    border-radius: 0;

    font-size: 34px;

    filter:
        drop-shadow(
            0 0 8px rgba(176, 108, 255, 0.25)
        );
}

.brand-text {

    margin-left: 7px;

    min-width: 0;
}

.brand-name {

    margin: 0;

    color: #ffffff;

    font-size: 21px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: -0.65px;
}

.brand-tagline {

    margin-top: 6px;

    color: #cbd6ee;

    font-size: 9.5px;

    line-height: 1;

    font-weight: 500;

    opacity: 0.95;

    white-space: nowrap;
}


/* ==========================================================
   SIDEBAR NAVIGATION
   ========================================================== */

.sidebar-nav {

    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 3px;

    padding: 0 12px 10px;

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.15);
    border-radius: 10px;
}


/* ==========================================================
   SIDEBAR LINK
   ========================================================== */

.sidebar-link {

    position: relative;

    min-height: 39px;

    display: flex;
    align-items: center;

    padding: 0 11px;

    border-radius: 9px;

    color: #d5def3;

    font-size: 12px;

    font-weight: 500;

    line-height: 1;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.sidebar-link:hover {

    color: #ffffff;

    background: rgba(255,255,255,0.065);
}

.sidebar-link.active {

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            #3157f5 0%,
            #3a42e8 100%
        );

    box-shadow:
        0 5px 15px rgba(45, 70, 235, 0.28);
}


/* ==========================================================
   SIDEBAR ICON
   ========================================================== */

.sidebar-icon {

    width: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin-right: 8px;

    color: #dce5ff;

    font-size: 15px;
}

.sidebar-link.active .sidebar-icon {
    color: #ffffff;
}

.sidebar-icon.whatsapp-icon {
    color: #2bd473;
}


/* ==========================================================
   SIDEBAR TITLE
   ========================================================== */

.sidebar-title {

    flex: 1;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* ==========================================================
   SIDEBAR ARROW
   ========================================================== */

.sidebar-arrow {

    margin-left: auto;

    color: #c4d0ea;

    font-size: 8px;

    opacity: 0.9;
}


/* ==========================================================
   SIDEBAR BOTTOM
   ========================================================== */

.sidebar-bottom {

    flex-shrink: 0;

    padding: 2px 13px 19px;

    text-align: center;
}


/* ==========================================================
   SIDEBAR BUS IMAGE
   ========================================================== */

.sidebar-bus-image {

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 0;
}

.sidebar-bus-image img {

    display: block;

    width: 190px;

    max-width: 100%;

    height: auto;

    object-fit: contain;

    opacity: 0.96;

    filter:
        drop-shadow(
            0 4px 8px rgba(0,0,0,.16)
        );
}


/* ==========================================================
   SIDEBAR SLOGAN
   ========================================================== */

.sidebar-slogan {

    margin-top: -1px;

    color: #d2dcf7;

    font-family: 'Caveat', cursive;

    font-size: 21px;

    line-height: 0.95;

    font-weight: 600;

    transform: rotate(-4deg);

    opacity: 0.95;
}

.sidebar-slogan span {

    color: #dce5ff;

    font-size: 20px;

    font-weight: 600;
}


/* ==========================================================
   MAIN CONTENT
   ========================================================== */

.main-content {

    width: calc(100% - var(--sidebar-width));

    min-width: 0;

    min-height: 100vh;

    margin-left: var(--sidebar-width);

    background: var(--bg-body);

    overflow-x: hidden;
}


/* ==========================================================
   TOPBAR
   ========================================================== */

.topbar {

    width: 100%;

    height: var(--topbar-height);

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 0 13px;

    background: #ffffff;

    border-bottom: 1px solid #e7edf6;

    position: sticky;

    top: 0;

    z-index: 500;
}


/* ==========================================================
   MENU BUTTON
   ========================================================== */

.menu-toggle {

    width: 40px;
    height: 40px;

    display: none;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: transparent;

    color: #17366e;

    font-size: 17px;

    border-radius: 8px;
}

.menu-toggle:hover {
    background: #f1f5fc;
}


/* ==========================================================
   SEARCH
   ========================================================== */

.top-search {

    width: 450px;

    height: 34px;

    display: flex;
    align-items: center;

    padding: 0 13px;

    background: #eef3fc;

    border: 1px solid #e7edf8;

    border-radius: 10px;

    color: #31589e;
}

.top-search i {

    flex-shrink: 0;

    margin-right: 10px;

    font-size: 12px;

    color: #315b9f;
}

.top-search input {

    width: 100%;

    min-width: 0;

    padding: 0;

    border: 0;

    outline: 0;

    background: transparent;

    color: #17366e;

    font-size: 11px;

    font-weight: 500;
}

.top-search input::placeholder {
    color: #6e84aa;
}


/* ==========================================================
   TOPBAR SPACER
   ========================================================== */

.topbar-spacer {
    flex: 1;
}


/* ==========================================================
   NOTIFICATION
   ========================================================== */

.notification-btn {

    position: relative;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: transparent;

    color: #16376f;

    border-radius: 50%;

    font-size: 17px;
}

.notification-btn:hover {
    background: #f1f5fc;
}

.notification-count {

    position: absolute;

    top: 1px;
    right: 0;

    width: 15px;
    height: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f32939;

    border: 2px solid #ffffff;

    color: #ffffff;

    font-size: 7px;

    font-weight: 800;
}


/* ==========================================================
   USER AREA
   ========================================================== */

.top-user {

    display: flex;
    align-items: center;

    flex-shrink: 0;

    margin-left: 3px;

    padding-left: 9px;

    cursor: pointer;
}

.user-avatar {

    width: 33px;
    height: 33px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #173a7a,
            #071b4b
        );

    border: 2px solid #edf2fa;

    color: #ffffff;

    font-size: 12px;
}

.user-info {

    display: flex;
    flex-direction: column;

    margin-left: 8px;

    line-height: 1.15;
}

.user-info strong {

    color: #122f65;

    font-size: 11px;

    font-weight: 700;
}

.user-info span {

    margin-top: 2px;

    color: #6d83a9;

    font-size: 8px;

    font-weight: 500;
}

.user-arrow {

    margin-left: 12px;

    color: #17386f;

    font-size: 8px;
}


/* ==========================================================
   DASHBOARD HERO
   ========================================================== */

.dashboard-hero {

    position: relative;

    width: 100%;

    height: 105px;

    overflow: hidden;

    background-color: #0b2039;

    /*
       Put your clean bus background here:
       assets/images/swiftbus-header-background.png
    */

    background-image:
        url('../images/swiftbus-header-background.png');

    background-repeat: no-repeat;

    background-size: cover;

    background-position: center center;
}


/* Dark subtle overlay */

.dashboard-hero::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(7, 25, 57, 0.30) 0%,
            rgba(7, 25, 57, 0.10) 45%,
            rgba(7, 25, 57, 0.00) 78%
        );
}


/* ==========================================================
   HERO CONTENT
   ========================================================== */

.dashboard-hero-content {

    position: relative;

    z-index: 2;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;

    padding: 0 33px;
}

.dashboard-hero-text h1 {

    margin: 0;

    color: #ffffff;

    font-size: 23px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.45px;

    text-shadow:
        0 1px 4px rgba(0,0,0,.18);
}

.dashboard-hero-text p {

    margin: 6px 0 0;

    color: rgba(255,255,255,.94);

    font-size: 11px;

    line-height: 1.4;

    font-weight: 500;

    text-shadow:
        0 1px 3px rgba(0,0,0,.15);
}


/* ==========================================================
   OLD WELCOME BANNER
   Keep compatibility with existing pages.
   ========================================================== */

.welcome-banner {

    position: relative;

    margin: 20px 16px;

    padding: 24px 28px;

    border-radius: var(--radius-xl);

    color: #ffffff;

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            #0b1a3a,
            #152d62
        );

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.welcome-banner h1 {

    margin: 0 0 5px;

    color: #ffffff;

    font-size: 23px;

    font-weight: 700;
}

.welcome-banner p {

    margin: 0;

    color: #d3def1;

    font-size: 12px;
}

.welcome-banner .banner-date {

    display: none;
}


/* ==========================================================
   CONTENT SPACING
   ========================================================== */

/*
   Hero stays full width.

   Other page content gets the same breathing room
   as the reference dashboard.
*/

.main-content > .stat-grid,
.main-content > .dashboard-grid,
.main-content > .dashboard-grid-3,
.main-content > .card,
.main-content > .quick-actions,
.main-content > .mini-stat-grid {

    margin-left: 16px;
    margin-right: 16px;
}


/* ==========================================================
   STAT CARDS
   ========================================================== */

.stat-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-top: 10px;

    margin-bottom: 13px;
}

.stat-card {

    min-width: 0;

    min-height: 94px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 16px;

    background: #ffffff;

    border: 1px solid var(--border-color);

    border-radius: 11px;

    box-shadow:
        0 2px 9px rgba(25,48,90,.055);
}

.stat-icon {

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    color: #ffffff;

    background: var(--blue-500);

    font-size: 19px;
}

.stat-card.green .stat-icon {
    background: var(--green-500);
}

.stat-card.orange .stat-icon {
    background: var(--orange-500);
}

.stat-card.purple .stat-icon {
    background: var(--purple-500);
}

.stat-body {
    min-width: 0;
}

.stat-body .label {

    margin-bottom: 4px;

    color: var(--text-heading);

    font-size: 11px;

    line-height: 1.25;

    font-weight: 600;
}

.stat-body .value {

    color: #112c62;

    font-size: 22px;

    line-height: 1.15;

    font-weight: 800;

    overflow-wrap: anywhere;
}

.stat-body .trend {

    margin-top: 4px;

    color: #16ae68;

    font-size: 9px;

    font-weight: 700;
}


/* ==========================================================
   GENERIC CARD
   ========================================================== */

.card {

    min-width: 0;

    margin-bottom: 13px;

    padding: 15px;

    background: #ffffff;

    border: 1px solid var(--border-color);

    border-radius: 11px;

    box-shadow:
        0 2px 9px rgba(25,48,90,.055);
}

.card-header {

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 10px;
}

.card-header h3 {

    margin: 0;

    color: var(--text-heading);

    font-size: 13px;

    line-height: 1.3;

    font-weight: 700;
}

.card-header .view-all {

    color: var(--blue-600);

    font-size: 10px;

    font-weight: 600;

    white-space: nowrap;
}


/* ==========================================================
   DASHBOARD GRID
   ========================================================== */

.dashboard-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(0, 1fr);

    gap: 13px;

    align-items: start;

    min-width: 0;

    margin-top: 0;

    margin-bottom: 0;
}

.dashboard-grid > div {
    min-width: 0;
}

.dashboard-grid-3 {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 13px;

    min-width: 0;

    margin-top: 0;
}


/* ==========================================================
   TABLE WRAPPER
   ========================================================== */

.table-wrap {

    width: 100%;

    max-width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}


/* ==========================================================
   TABLE
   ========================================================== */

table {

    width: 100%;

    border-collapse: collapse;

    font-size: 10.5px;
}

thead th {

    padding: 8px 10px;

    color: #536c96;

    background: #f4f7fc;

    border-bottom: 1px solid var(--border-color);

    text-align: left;

    font-size: 9px;

    font-weight: 700;

    white-space: nowrap;
}

tbody td {

    padding: 9px 10px;

    color: #284875;

    border-bottom: 1px solid #edf1f7;

    font-size: 10px;

    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #fafcff;
}


/* ==========================================================
   BADGES
   ========================================================== */

.badge {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 20px;

    padding: 3px 9px;

    border-radius: 20px;

    font-size: 9px;

    line-height: 1;

    font-weight: 700;

    white-space: nowrap;
}

.badge-success {
    color: #0f9c5d;
    background: #d9f8e9;
}

.badge-warning {
    color: #d97800;
    background: #fff0cc;
}

.badge-danger {
    color: #d82f3d;
    background: #ffe0e4;
}

.badge-info {
    color: #2860d9;
    background: #e0ebff;
}

.badge-neutral {
    color: #64748b;
    background: #eef2f6;
}


/* ==========================================================
   QUICK ACTIONS
   ========================================================== */

.quick-actions {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    min-width: 0;
}

.quick-action-btn {

    min-width: 0;

    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 10px 8px;

    border-radius: 10px;

    color: #ffffff;

    font-size: 10px;

    line-height: 1.2;

    font-weight: 700;

    text-align: center;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.quick-action-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 7px 15px rgba(20,40,80,.12);
}

.quick-action-btn.blue {
    background: linear-gradient(135deg,#168af0,#0878df);
}

.quick-action-btn.green {
    background: linear-gradient(135deg,#22c979,#12b86a);
}

.quick-action-btn.purple {
    background: linear-gradient(135deg,#a353ef,#913ee7);
}

.quick-action-btn.orange {
    background: linear-gradient(135deg,#ff9a36,#f47716);
}

.quick-action-btn.pink {
    background: linear-gradient(135deg,#f65385,#ec3e73);
}

.quick-action-btn.teal {
    background: linear-gradient(135deg,#17c7bb,#09aa9e);
}


/* ==========================================================
   ACTIVITY LIST
   ========================================================== */

.activity-item {

    display: flex;
    align-items: flex-start;

    gap: 10px;

    padding: 9px 0;

    border-bottom: 1px solid #edf1f7;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    color: #ffffff;

    font-size: 12px;
}

.activity-body {
    flex: 1;
    min-width: 0;
}

.activity-title {

    color: #24436f;

    font-size: 10.5px;

    font-weight: 700;
}

.activity-sub {

    margin-top: 3px;

    color: #8090aa;

    font-size: 9px;
}

.activity-time {

    color: #8190aa;

    font-size: 8.5px;

    white-space: nowrap;
}


/* ==========================================================
   MINI STAT CARDS
   ========================================================== */

.mini-stat-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 9px;
}

.mini-stat {

    min-width: 0;

    padding: 14px 7px;

    text-align: center;

    background: #ffffff;

    border: 1px solid var(--border-color);

    border-radius: 9px;

    box-shadow:
        0 2px 8px rgba(25,48,90,.045);
}

.mini-stat .value {

    color: #173568;

    font-size: 18px;

    line-height: 1.2;

    font-weight: 800;

    overflow-wrap: anywhere;
}

.mini-stat .label {

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 9px;

    line-height: 1.25;

    overflow-wrap: break-word;
}


/* ==========================================================
   PROMO BANNER
   ========================================================== */

.promo-banner {

    position: relative;

    padding: 18px;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0b1b45,
            #17356e
        );

    border-radius: 11px;
}

.promo-banner h4 {

    margin: 0 0 5px;

    color: #ffffff;

    font-size: 13px;
}

.promo-banner p {

    margin: 0 0 12px;

    color: #cbd8ed;

    font-size: 10px;

    line-height: 1.5;
}

.promo-banner .btn-whatsapp {

    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 8px 13px;

    color: #ffffff;

    background: #25d366;

    border-radius: 7px;

    font-size: 10px;

    font-weight: 700;
}


/* ==========================================================
   FORM ELEMENTS
   ========================================================== */

input,
select,
textarea {

    border: 1px solid var(--border-color);

    border-radius: 8px;

    background: #ffffff;

    color: var(--text-dark);

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

input:focus,
select:focus,
textarea:focus {

    border-color: #7da0ff;

    box-shadow:
        0 0 0 3px rgba(49,87,245,.08);
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 36px;

    padding: 8px 14px;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 700;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.btn:hover {

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px rgba(25,50,100,.10);
}

.btn-primary {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #3157f5,
            #3e4ee8
        );
}

.btn-success {

    color: #ffffff;

    background: #22c979;
}

.btn-danger {

    color: #ffffff;

    background: #ef4444;
}

.btn-warning {

    color: #ffffff;

    background: #f97316;
}


/* ==========================================================
   SIDEBAR OVERLAY
   ========================================================== */

.sidebar-overlay {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 900;

    background:
        rgba(3, 12, 31, .48);

    backdrop-filter: blur(1px);
}


/* ==========================================================
   DESKTOP LARGE
   ========================================================== */

@media (min-width: 1400px) {

    .dashboard-hero {
        height: 105px;
    }

    .dashboard-hero-content {
        padding-left: 33px;
    }

    .dashboard-hero-text h1 {
        font-size: 23px;
    }
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1200px) {

    .stat-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .mini-stat-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {

        grid-template-columns:
            minmax(0, 1fr);
    }

    .dashboard-grid-3 {

        grid-template-columns:
            minmax(0, 1fr);
    }

    .top-search {
        width: 330px;
    }
}


/* ==========================================================
   MOBILE SIDEBAR
   ========================================================== */

@media (max-width: 900px) {

    .sidebar {

        transform: translateX(-100%);
    }

    .sidebar.open {

        transform: translateX(0);
    }

    .main-content {

        width: 100%;

        margin-left: 0;
    }

    .menu-toggle {

        display: flex;
    }

    .top-search {

        width: 280px;

        max-width: 45vw;
    }

    .sidebar-overlay.active {

        display: block;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 600px) {

    :root {
        --topbar-height: 54px;
    }

    .topbar {

        padding: 0 8px;

        gap: 4px;
    }

    .menu-toggle {

        width: 35px;
        height: 35px;
    }

    .top-search {

        flex: 1;

        width: auto;

        max-width: none;

        height: 33px;

        padding: 0 10px;
    }

    .top-search input {

        font-size: 9px;
    }

    .notification-btn {

        width: 34px;
        height: 34px;
    }

    .user-info {

        display: none;
    }

    .user-arrow {

        display: none;
    }

    .top-user {

        padding-left: 2px;

        margin-left: 0;
    }

    .user-avatar {

        width: 31px;
        height: 31px;
    }


    /* Hero */

    .dashboard-hero {

        height: 100px;

        background-position: center center;
    }

    .dashboard-hero-content {

        padding: 0 17px;
    }

    .dashboard-hero-text h1 {

        font-size: 18px;
    }

    .dashboard-hero-text p {

        margin-top: 4px;

        font-size: 9px;
    }


    /* Dashboard content */

    .main-content > .stat-grid,
    .main-content > .dashboard-grid,
    .main-content > .dashboard-grid-3,
    .main-content > .card,
    .main-content > .quick-actions,
    .main-content > .mini-stat-grid {

        margin-left: 10px;
        margin-right: 10px;
    }


    .stat-grid,
    .mini-stat-grid,
    .quick-actions {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .stat-card {

        padding: 12px;

        gap: 9px;
    }

    .stat-icon {

        width: 42px;
        height: 42px;

        font-size: 16px;
    }

    .stat-body .value {

        font-size: 18px;
    }

    .stat-body .label {

        font-size: 9px;
    }

    .card {

        padding: 12px;
    }

    .card-header h3 {

        font-size: 12px;
    }

    .sidebar-bus-image img {

        width: 170px;
    }
}


/* ==========================================================
   VERY SMALL MOBILE
   ========================================================== */

@media (max-width: 400px) {

    .top-search i {
        margin-right: 6px;
    }

    .top-search input {
        font-size: 8.5px;
    }

    .dashboard-hero {
        height: 92px;
    }

    .dashboard-hero-text h1 {
        font-size: 16px;
    }

    .dashboard-hero-text p {
        font-size: 8px;
    }

    .stat-card {
        min-height: 82px;
    }

    .stat-icon {
        width: 37px;
        height: 37px;
        font-size: 14px;
    }

    .stat-body .value {
        font-size: 16px;
    }
}