html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
    background-color: #1a1a1a;
}

#shift-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    min-width: 280px;
    max-width: 320px;
    transition: all 0.3s ease-in-out;
}

#shift-menu h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #f0db4f;
    padding-bottom: 10px;
}

#shift-menu p {
    margin: 15px 0;
    line-height: 1.6;
    color: #555;
}

#shift-menu strong {
    color: #000;
}

.basic-button {
    width: 100%;
    padding: 15px;
    background-color: #f0db4f;
    color: #333;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.basic-button:hover {
    background-color: #eac700;
}

.fare-info {
    font-size: 1.2em;
    font-weight: bold;
    color: #27ae60;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background-color: #e9f7ef;
    border-radius: 5px;
}

.leaflet-routing-container {
    display: none;
}

.taxi-icon {
    transition: transform 0.1s linear;
}

#bottom-right-bar {
  position: absolute;
  bottom: 7px;
  right: 12px;
  z-index: 10001;
}

#balance-counter {
  background: #beffb5;
  padding: 5px;
  border-radius: 8px;
  border: 2px solid black;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.leaflet-control-attribution {
    display: none !important;
}

.shift-menu-trip {
  border: 1px solid gray;
  border-radius: 15px;
  background-color: #ffffffb8;
  text-align: center;
  padding: 6px 10px 10px 10px;
}

#stop-shift-btn, #cancel-pickup-btn {
  background-color: #ffabab;
}

#stop-shift-btn:hover, #cancel-pickup-btn:hover {
    background-color: #ff6c6c;
}

.small-action-btn-default {
    background-color: #ddd;
}

.small-action-btn-default:hover {
    background-color: #c2c2c2;
}

#bottom-left-bar {
    position: absolute;
    bottom: 7px;
    left: 12px;
    z-index: 10001;
}

#expand-bottom-left {
  background: #f6f6f6;
  padding: 5px;
  border-radius: 8px;
  border: 2px solid #adadad;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  width: 35px;
  cursor: pointer;
}

#bottom-left-expandable {
    position: absolute; 
    bottom: 40px; 
    left: 0; 
    flex-direction: column; 
    gap: 5px; 
    background: #f6f6f6; 
    padding: 5px; 
    border: 1px solid #adadad; 
    border-radius: 8px; 
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.small-action-btn {
  width: 35px;
  height: 30px;
  color: #333;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.small-action-btn:disabled {
  background-color: #bfbfbf !important;
  color: gray;
}

.fare-float {
  position: absolute;
  right: 20px;
  bottom: 40px; /* Above balance counter */
  color: #5fff5f;
  font-weight: bold;
  font-size: 1.2em;
  animation: floatUpFade 3.2s ease-out forwards;
  pointer-events: none;
  z-index: 1000;
  text-shadow: #000 0 0 5px;
}

@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
}

.balance-update-up {
    color: #00c400;
}

.shift-menu-trip-data {
    margin: 10px 0px 0px 0px;
    display: grid;
    grid-template-columns: auto auto;
    color: #555;
    justify-content: center;
    gap: 20px;
}

.shift-menu-trip-address {
    margin: 0;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 0px 12px;
}

    #help-menu, #history-menu, #settings-menu {
        display: none;
        border: 1px solid #ccc;
        width: 50%;
        height: 50%;
        font-family: Arial, sans-serif;
        position: absolute;
        z-index: 10004;
        background-color: white;
        padding: 20px;
        border-radius: 20px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .tabs {
        display: flex;
        /*background-color: #f1f1f1;*/
    }

    .tab-button {
        flex: 1;
        padding: 10px;
        border: 1px solid #d5d5d5;
        background: none;
        cursor: pointer;
        text-align: center;
        border-radius: 17px 17px 0px 0px;
    }

    .tab-button.active {
        background-color: #fff;
        border-bottom: 2px solid #F0DB4F;
        font-weight: bold;
    }

    .tab-panel {
        display: none;
        padding: 15px;
    }

    .tab-panel.active {
        display: block;
    }
    
    .help-menu-header {
        padding-bottom: 15px;
        text-align: center;
    }
    
    .help-menu-header span {
        font-size: 30px;
    }
    
    .help-menu-header button {
        background: none;
        border: none;
        position: absolute;
        top: 10px;
        right: 12px;
        font-size: 20px;
        cursor: pointer;
    }
    
    #menu-overlay {
        display: none;
        position: absolute;
        width: 100vw;
        height: 100vh;
        top: 0;
        background: #00000038;
        z-index: 10003;
    }
    
    #history-content {
        height: 90%;
        overflow-y: auto;
    }
    
    .history-entry {
        border: 1px solid gray;
        padding: 0px 0px 0px 20px;
        margin-bottom: 10px;
        border-radius: 20px;
        display: grid;
        grid-template-columns: 120px auto auto;
        align-items: center;
        height: 120px;
    }
    
    .history-entry img {
        border-radius: 10px;
    }
    
    .history-entry p, .history-entry h3 {
        margin: 0;
    }
