html {
  font-size: 14px;
}

@media (min-width: 768px) {
    html {
        width: 100vw;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;
        font-size: 16px;
    }
}

html, body {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.row, .d-flex {
    margin: 0 !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
#sidebar {
    background: #232e3c;
    color: #fff;
}

.vehicle-item:hover, .vehicle-item.active {
    background: #2c3e50;
}

.sidebar-header h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.row {

    margin: 0;
}

/* Remove .d-flex from the height rule */
.d-flex {
    margin: 0;
}

/* Remove height from .tracker-item */
.tracker-item {
    margin: 0;
}

.col-sm-8 {
    height: 100vh;
    min-height: 100vh;
    padding: 0;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 100vh;
}
#sidebar {
    width: 260px;
    background: #f8f9fa;
    color: #222;
    /* Remove min-height: 100vh if present */
}

#vehicle-list {
    overflow-y: auto;
    margin-bottom: 0;
    padding-left: 0;
}
#main-icon-bar {
    width: 60px;
    display: flex;
    align-items: flex-start; /* Align icon to the top */
    justify-content: center;
    padding-top: 16px; /* Optional: add space from the top */
    background: #fff !important;
}

    #main-icon-bar .bi {
        font-size: 48px;
        width: 100%;
        /* Remove height and flex properties */
        color: #888; /* gray for non-active */
        transition: color 0.2s;
    }


    /* Active/current page icon */
    #main-icon-bar .active .bi {
        color: #000 !important; /* black for active */
    }

.asset-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    margin-bottom: 1rem;
    padding: 1rem;
    transition: box-shadow 0.2s;
}

    .asset-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

.asset-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.tracker-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95em;
    margin-top: 0.5rem;
}

.tracker-battery {
    color: #198754;
    font-weight: 500;
}

.asset-actions .btn {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.asset-actions {
    margin-top: 0.5rem;
}
#sidebar-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    cursor: ew-resize;
    background: #e0e0e0;
    z-index: 10;
    border-radius: 3px;
    transition: background 0.2s;
}

    #sidebar-resizer:hover {
        background: #bdbdbd;
    }

/* Asset list: fill area and scroll if overflow (desktop), limit to 5 and scroll (mobile) */
#asset-list {
    max-height: none;
    height: 100%;
    overflow-y: auto;
}
#asset-list > li {
    min-height: 72px;
}
@media (max-width: 768px) {
    #asset-list {
        max-height: calc(5 * 72px);
        height: auto;
        overflow-y: auto;
    }
}

/* Home page hero and feature card styles */
.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 20vh;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}
.home-logo {
    max-width: 220px;
    width: 100%;
    margin-bottom: 1rem;
}
.home-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0a2342;
    margin-bottom: 0.3rem;
}
.home-title .brand {
    color: #009ef7;
}
.home-lead {
    color: #0a2342;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}
.home-btn {
    background: #009ef7;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    padding: 0.6rem 2rem;
    border-radius: 24px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,158,247,0.07);
    transition: background 0.2s;
}
.home-btn:hover, .home-btn:focus {
    background: #00c3ff;
    color: #fff;
}
.feature-card {
    min-width: 220px;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid #e3f2fd;
    box-shadow: 0 2px 8px rgba(0,158,247,0.07);
    background: #fff;
    height: 100%;
    padding: 1.2rem 1rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.feature-card .bi {
    font-size: 2.2rem;
    color: #009ef7;
    margin-bottom: 0.3rem;
}
.feature-card .card-title {
    color: #0a2342;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.15rem;
}
.feature-card .card-text {
    color: #4a5a6a;
    font-size: 0.98rem;
    margin-bottom: 0.7rem;
}
.feature-card img {
    max-height: 180px;
    min-height: 120px;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,158,247,0.08);
    margin-top: 0.5rem;
}
@media (max-width: 991px) {
    .feature-card { margin-bottom: 1.5rem; }
}