.feature-icon:hover {
  transform: scale(1.15);
  transition: transform 0.3s ease-in-out;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-active {
  background-color: #c8f7c5;
  color: #155724;
  padding: 4px 10px;
  border-radius: 8px;
}

.status-maintenance {
  background-color: #fff3cd;
  color: #856404;
  padding: 4px 10px;
  border-radius: 8px;
}

.status-inactive {
  background-color: #f8d7da;
  color: #721c24;
  padding: 4px 10px;
  border-radius: 8px;
}


/* small visual niceties */
        .status-badge {
            font-size: 0.75rem;
            padding: .25rem .5rem;
            border-radius: .5rem;
        }

        .table-scroll {
            max-height: 420px;
            overflow: auto;
        }

        /* Fix Leaflet map overlaying modals */
        .leaflet-container {
            z-index: 0 !important;
        }

        .leaflet-pane,
        .leaflet-top,
        .leaflet-bottom {
            z-index: 0 !important;
        }

        /* Make sure modals stay above everything */
        #viewModal,
        #editModal {
            z-index: 9999 !important;
        }

          /* small visual niceties */
        .status-badge {
            font-size: 0.75rem;
            padding: .25rem .5rem;
            border-radius: .5rem;
        }

        .table-scroll {
            max-height: 420px;
            overflow: auto;
        }

        /* Fix Leaflet map overlaying modals */
        .leaflet-container {
            z-index: 0 !important;
        }

        .leaflet-pane,
        .leaflet-top,
        .leaflet-bottom {
            z-index: 0 !important;
        }

        /* Make sure modals stay above everything */
        #viewModal,
        #editModal {
            z-index: 9999 !important;
        }

        /* --- Main Dashboard Scroll Fix --- */
        main {
            height: calc(100vh - 0px);
            /* full viewport height */
            overflow-y: auto;
            /* allow only main content to scroll */
            overflow-x: hidden;
            /* prevent sideways scroll */
        }

        /* --- Map Layer Fix --- */
        #vehicleMap {
            position: relative;
            z-index: 1 !important;
            /* ensure map stays under modals */
        }

        /* --- Modal Layer Fix --- */
        #viewModal,
        #editModal {
            position: fixed !important;
            z-index: 9999 !important;
            /* ensure modals stay above everything */
        }

        /* Optional: Smooth scrolling for main content */
        main {
            scroll-behavior: smooth;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .animate-fadeIn {
            animation: fadeIn 0.2s ease-out;
        }

        html, body {
    height: 100%;
    overflow: hidden; /* prevent full page scroll */
  }