.booking-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.booking-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 25px;
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
}

.booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.booking-modal-header h3 {
    font-size: 20px;
    color: #333;
}

.booking-close {
    font-size: 26px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s;
}

.booking-close:hover {
    color: #f44336;
    transform: scale(1.1);
}

.vehicle-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 5px;
    border-left: 4px solid #4a90e2;
}

.vehicle-image {
    display: none;
}

.vehicle-details {
    width: 100%;
}

.vehicle-details h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 18px;
}

.vehicle-details p {
    margin: 8px 0;
    color: #555;
    display: flex;
    align-items: center;
}

.vehicle-battery {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.battery-indicator {
    display: inline-block;
    width: 60px;
    height: 16px;
    border: 1px solid #333;
    position: relative;
    margin-left: 8px;
    border-radius: 3px;
}

.battery-level {
    height: 100%;
    background: linear-gradient(to right, #f44336 0%, #ff9800 30%, #4CAF50 70%);
}

.battery-tip {
    position: absolute;
    top: 0;
    right: -4px;
    width: 3px;
    height: 8px;
    margin-top: 4px;
    background: #333;
    border-radius: 0 2px 2px 0;
}

.battery-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    mix-blend-mode: difference;
    line-height: 16px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

/* Improve date selector style to prevent horizontal scrolling */
.date-selector {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
    gap: 4px; /* Reduce button spacing */
}

.date-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 6px 2px; /* Reduce padding */
    margin: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0; /* Allow button to shrink */
    flex: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.date-name {
    font-size: 10px; /* Reduce font size */
    font-weight: bold;
    margin-bottom: 2px; /* Reduce spacing */
    color: #333;
    width: 100%;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
}

.date-value {
    font-size: 10px; /* Reduce font size */
    color: #666;
    font-weight: normal;
    width: 100%;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
}

.date-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.date-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
}

.date-btn.active .date-name,
.date-btn.active .date-value {
    color: white;
}

/* Add disabled date button style */
.date-btn.disabled {
    background: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #ddd;
    transform: none;
    box-shadow: none;
}

.date-btn.disabled:hover {
    background: #f5f5f5;
    transform: none;
    box-shadow: none;
}

.date-btn.disabled .date-name,
.date-btn.disabled .date-value {
    color: #bbb;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

/* Time slot group container */
.time-slots-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Time group title */
.time-group-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

/* Add icon before group title */
.time-group-title:before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Morning icon - sunrise */
.time-slot-group:nth-child(1) .time-group-title:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF9800'%3E%3Cpath d='M12 5L8 9h3v6h2v-6h3L12 5zm0 14c3.31 0 6-2.69 6-6H6c0 3.31 2.69 6 6 6z'/%3E%3C/svg%3E");
}

/* Afternoon icon - sun */
.time-slot-group:nth-child(2) .time-group-title:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF9800'%3E%3Cpath d='M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z'/%3E%3C/svg%3E");
}

/* Evening icon - moon */
.time-slot-group:nth-child(3) .time-group-title:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233F51B5'%3E%3Cpath d='M10 2c-1.82 0-3.53.5-5 1.35C8.4 4.77 11 8.24 11 12s-2.6 7.23-6 8.65c1.47.85 3.18 1.35 5 1.35 5.52 0 10-4.48 10-10S15.52 2 10 2z'/%3E%3C/svg%3E");
}

/* Vertical time slots container */
.time-slots-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Time slot item */
.time-slot {
    padding: 10px 15px;
    background: #f0f0f0;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.time-slot:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.time-slot.selected {
    background: #4a90e2;
    color: white;
    border-color: #2171cd;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
    animation: selected-pulse 1s ease-in-out;
}

/* Add selection animation effect */
@keyframes selected-pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(74, 144, 226, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0); }
}

.time-slot.unavailable {
    background: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Add message for no available time slots */
.no-slots-in-group {
    padding: 10px;
    color: #999;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
    font-style: italic;
    font-size: 12px;
}

/* Add loading state and prompt styles */
.loading-time-slots {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
    background: #f5f5f5;
    border-radius: 4px;
}

.time-slots-error {
    padding: 15px;
    text-align: center;
    color: #f44336;
    background: #ffebee;
    border-radius: 4px;
}

.no-slots-message {
    padding: 15px;
    text-align: center;
    color: #ff9800;
    background: #fff3e0;
    border-radius: 4px;
}

.time-slots-instruction {
    padding: 15px;
    text-align: center;
    color: #2196F3;
    background: #e3f2fd;
    border-radius: 4px;
}

.booking-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f5faff;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.booking-summary h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #4a90e2;
    font-size: 18px;
}

.booking-summary p {
    margin: 8px 0;
    color: #555;
}

.booking-summary strong {
    color: #333;
}

.submit-btn {
    padding: 14px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.submit-btn:hover {
    background-color: #3a80d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Reservation status colors */
.status-reserved {
    color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.status-in_progress {
    color: #FF9800;
    background-color: rgba(255, 152, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.status-completed {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.status-cancelled {
    color: #F44336;
    background-color: rgba(244, 67, 54, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

/* Modify time slot group responsive design */
@media (min-width: 768px) {
    .time-slots-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .time-slot-group {
        flex: 1;
        max-width: 30%;
    }
}

/* Add responsive adjustments to optimize display on small screens */
@media (max-width: 576px) {
    .date-btn {
        min-width: 60px;
        padding: 6px 3px;
        font-size: 11px;
    }
    
    .date-name {
        font-size: 10px;
    }
    
    .date-value {
        font-size: 10px;
    }
}

/* Optimize responsive display */
@media (min-width: 420px) {
    /* Add some space on medium-sized screens */
    .date-btn {
        padding: 8px 3px;
    }
    
    .date-name {
        font-size: 11px;
    }
    
    .date-value {
        font-size: 11px;
    }
}

@media (min-width: 576px) {
    /* Restore looser styles on larger screens */
    .date-btn {
        padding: 8px 5px;
        min-width: 60px;
    }
    
    .date-name {
        font-size: 12px;
    }
    
    .date-value {
        font-size: 12px;
    }
}
