* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    height: 100vh;
}

header {
    background-color: #000336;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.company-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.company-name {
    color: #fff;
    font-size: 22px;
    margin: 0;
}

.page {
    display: none;
    padding: 20px;
    height: calc(100vh - 140px);
    overflow-y: auto;
}

.page.active {
    display: block;
}

.nav-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #777;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    text-decoration: none;
}

.nav-button.active {
    color: #ffcc00;
}

.nav-button i {
    font-size: 24px;
    margin-bottom: 4px;
}

/* Book Cab Page */
.search-box {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.minimum-fare {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.driver-mobile {
    font-size: 14px;
    color: #777;
    margin-top: 2px;
}

.favorite-driver.selected {
    border: 2px solid #ffcc00;
}

.input-group {
    margin-bottom: 12px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.booking-options-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.booking-option {
    position: relative;
    flex: 1;
    min-width: 90px;
}

.booking-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.booking-option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background-color: white;
    border-radius: 8px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-icon {
    font-size: 24px;
    margin-bottom: 5px;
    color: #777;
}

.booking-option input[type="radio"]:checked + .booking-option-label {
    border-color: #ffcc00;
    background-color: #fffbea;
}

.booking-option input[type="radio"]:checked + .booking-option-label .option-icon {
    color: #ffcc00;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    width: 150px;
    pointer-events: none;
    z-index: 100;
    margin-bottom: 8px;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.booking-option:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.driver-list {
    margin-top: 15px;
}

.select-driver {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
}

.location-input {
    position: relative;
    width: 100%;
}

.location-input i {
    position: absolute;
    top: 12px;
    left: 10px;
    color: #777;
}

.location-input input {
    padding-left: 35px;
}

.booking-button {
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 14px;
    width: 100%;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.cab-type {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cab-type img {
    width: 110px;
    height: 50px;
    margin-right: 15px;
}

.cab-info {
    flex-grow: 1;
}

.cab-type-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.cab-eta {
    font-size: 12px;
    color: #777;
}

.cab-price {
    font-weight: 600;
}

.cab-type.selected {
    border: 2px solid #ffcc00;
}

/* History Page */
.trip-card {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.trip-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.trip-date {
    color: #777;
    font-size: 14px;
}

.trip-price {
    font-weight: 600;
}

.trip-route {
    display: flex;
    margin-bottom: 10px;
}

.trip-route-line {
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trip-route-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-bottom: 4px;
}

.trip-route-dot.pickup {
    background-color: #4CAF50;
}

.trip-route-dot.dropoff {
    background-color: #F44336;
}

.trip-route-line-inner {
    width: 2px;
    height: 30px;
    background-color: #ddd;
}

.trip-locations {
    flex-grow: 1;
}

.trip-location {
    margin-bottom: 20px;
}

.trip-location:last-child {
    margin-bottom: 0;
}

.location-type {
    color: #777;
    font-size: 12px;
}

.location-address {
    font-size: 14px;
}

.trip-driver {
    display: flex;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.driver-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.favorite-driver-button {
    margin-left: auto;
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-driver-button.active i {
    color: #ff6b6b;
}

.driver-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.driver-rating {
    color: #777;
    font-size: 12px;
}

/* Favorites Page */
.favorite-driver {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.favorite-driver-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.favorite-driver-info {
    flex-grow: 1;
}

.favorite-driver-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.favorite-driver-rating {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.favorite-driver-rating i {
    color: #FFD700;
    margin-right: 4px;
}

.favorite-driver-car {
    color: #777;
    font-size: 14px;
}

.favorite-actions {
    display: flex;
    gap: 10px;
}

.favorite-action-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
}

/* Current Booking Page Styles */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loading-spinner {
    font-size: 48px;
    color: #ffcc00;
    margin-bottom: 20px;
}

.loading-state h2 {
    margin-bottom: 15px;
}

.loading-state p {
    color: #777;
}

.driver-card {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.driver-info-header {
    display: flex;
    align-items: center;
}

.eta-info {
    margin-left: auto;
    text-align: right;
}

.eta-time {
    font-weight: bold;
    font-size: 18px;
    color: #ffcc00;
}

.eta-text {
    font-size: 12px;
    color: #777;
}

.ride-route-map {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.route-points {
    padding: 10px 0;
}

.pickup-point, .dropoff-point {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.pickup-point i {
    color: #4CAF50;
    margin-right: 10px;
    font-size: 14px;
}

.dropoff-point i {
    color: #F44336;
    margin-right: 10px;
    font-size: 16px;
}

.route-line {
    width: 2px;
    height: 30px;
    background-color: #ddd;
    margin-left: 6px;
    margin-bottom: 10px;
}

.point-address {
    font-size: 14px;
}

.ride-details {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    color: #777;
}

.detail-value {
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons button {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-buttons i {
    margin-right: 5px;
}

.call-driver-btn {
    background-color: #4CAF50;
    color: white;
}

.cancel-ride-btn {
    background-color: #f5f5f5;
    color: #333;
}

/* Profile Page Styles */
.profile-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-avatar {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 15px;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
}

.profile-details {
    margin-bottom: 20px;
}

.profile-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-label {
    width: 120px;
    color: #777;
}

.profile-value {
    flex: 1;
}

.edit-btn {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover {
    background-color: #f5f5f5;
}

.profile-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.logout-btn {
    background-color: #f5f5f5;
    color: #F44336;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.logout-btn i {
    margin-right: 8px;
}

/* History Filters */
.history-filters {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-group {
    flex: 1;
    min-width: 120px;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #777;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.filter-toggle {
    display: flex;
    align-items: flex-end;
    min-width: 120px;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-label input {
    margin-right: 6px;
}


/* for registration and login */
.container {
    width: 100%;
    padding: 25px 20px;
    margin: 20px auto;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #000336;
    font-size: 24px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9f9f9;
}

.pin-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.pin-input {
    width: 60px !important;
    height: 60px;
    text-align: center;
    font-size: 24px !important;
    border-radius: 12px !important;
}

.btn-yellow {
    width: 100%;
    padding: 16px;
    background-color: #f9c50d;
    color: #000336;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(249, 197, 13, 0.3);
}

.btn-yellow:hover {
    background-color: #f0bc00;
}

.switch-form {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 15px;
}

.switch-form a {
    color: #000336;
    text-decoration: none;
    font-weight: bold;
}

.switch-form a:hover {
    text-decoration: underline;
}

.form-page {
    display: none;
}



@media (min-width: 481px) {
    /* Add a phone frame for larger screens */
    body:before {
        content: '';
        position: fixed;
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
        border: 20px solid #333;
        border-radius: 40px;
        z-index: -1;
        pointer-events: none;
    }
}