* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

body {
    background: #f5f5f5;
    font-size: 16px;
    color: #333;
    font-family: 'Poppins', sans-serif;
    overflow-y: auto;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#map-container {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
}

#map {
    width: 100%;
    height: 100%;
}

.searchbox {
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 10px;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.inputlocation {
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    padding: 8px 0;
    color: #333;
}

.inputlocation::placeholder {
    color: #888;
    opacity: 0.7;
    font-size: 14px;
}

.inputlocation:focus {
    border-bottom: 2px solid #0056b3;
}

.searchinput {
    border: 1px solid #35c711;
    background-color: #35c711;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.location-btn {
    border: 1px solid #35c711;
    background: transparent;
    color: #35c711;
    padding: 8px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.searchinput:hover, .location-btn:hover {
    background: white;
    color: #35c711;
}

.location-btn:hover {
    background: #35c711;
    color: white;
}

.control-panel {
    position: fixed;
    bottom: -80%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: bottom 0.3s ease;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    max-height: 80vh;
    overflow-y: auto;
}

.control-panel.visible {
    bottom: 0;
}

.control-panel.hidden {
    bottom: -80%;
}

.control-panel-handle {
    width: 40px;
    height: 5px;
    background: #ccc;
    border-radius: 5px;
    margin: 0 auto 15px;
    cursor: pointer;
}

.control-panel-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-section, .route-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.primary {
    background: linear-gradient(45deg, #35c711, #4cd137);
    color: white;
    font-family: Poppins;
}

.primary:hover {
    background: linear-gradient(45deg, #2eb10f, #43b82c);
}

#nearby-stations-container {
    margin-top: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

#nearby-stations-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}

.station-item {
    padding: 12px;
    margin: 5px 0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.station-item:hover {
    background: #f0f0f0;
}

.sidebar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 350px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2002;
    padding: 20px;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.sidebar.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.slider-head {
    margin-bottom: 15px;
}

.sidebar-header h2 {
    font-size: 18px;
    color: #000;
    margin: 0;
    font-family: sans-serif;
}

#status {
    background-color: greenyellow;
    padding: 5px 10px;
    border-radius: 12px;
    color: rgb(3, 80, 9);
    font-size: 14px;
}

#loactionshow {
    margin: 0;
    font-size: 14px;
    color: #444;
}

.firstdiv-header, .seconddiv-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.divbox {
    background-color: rgba(230, 217, 217, 0.267);
    padding: 10px;
    border-radius: 8px;
    flex: 1;
}

.divboxhead {
    font-size: 12px;
    font-family: Poppins;
    margin-bottom: 5px;
}

.bouttondiv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-family: sans-serif;
    cursor: pointer;
    color: #ec0000;
    padding: 0;
}

#show-route-btn {
    color: #1ca800;
    border: none;
    background: none;
    font-size: 16px;
    font-family: sans-serif;
    cursor: pointer;
}

#sidebar-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
    font-size: 14px;
}

.leaflet-routing-container {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 90%;
    overflow-y: auto;
    font-size: 14px;
    margin: 10px auto;
}

.leaflet-routing-container-hide {
    display: none !important;
}

.leaflet-marker-icon.charging-icon:hover {
    transform: scale(1.2);
    transition: transform 0.2s;
}