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

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #258cfb;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}
#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;
    }
