body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #e0e0e0; /* Light lavender/pinkish background from original image */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 70px; /* Space for bottom navigation bar */
}

/* Status Bar (Consistent with previous design) */
.status-bar-placeholder {
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #000;
    height: 30px;
    background-color: #ffffff; /* Match page background */
}
.status-bar-placeholder .time { font-weight: 500; }
.notch-placeholder {
    width: 10px; height: 10px; background-color: #000;
    border-radius: 50%; position: absolute; left: 50%;
    transform: translateX(-50%); top: 10px;
}
.status-icons i { margin-left: 8px; }

/* Profile Header */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff; /* Match page background */
}

.header-icon-link i {
    font-size: 24px;
    color: #333;
}

/* Profile Content */
.profile-content {
    padding: 0 20px 20px 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.user-summary-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    background-color: #FFFFFF; /* White card background */
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #E0E0E0; /* Grey placeholder for avatar */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar-large i {
    font-size: 50px;
    color: #555;
}

.user-balance {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.add-funds-button {
    background-color: #FFFFFF;
    border: 1px solid #D0D0D0;
    color: #333;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.add-funds-button:hover {
    background-color: #f9f9f9;
}
.add-funds-button i {
    font-size: 14px;
}


/* Charging Statistics Section */
.charging-stats-section,
.current-car-section {
    margin-bottom: 25px;
}

.charging-stats-section h3,
.current-car-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.chart-placeholder-profile {
    width: 100%;
    /* height: 150px; */ /* Height will be determined by image aspect ratio */
    /* background-color: #f0f0f0; */
    /* border: 1px solid #ddd; */
    /* border-radius: 8px; */
    margin-bottom: 20px;
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    /* font-size: 14px; */
    /* color: #888; */
}

.stats-boxes {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Adjust gap as needed */
}

.stat-box {
    flex: 1; /* Distribute space equally */
    background-color: #FFFFFF;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    min-height: 80px; /* Ensure consistent height */
}

.stat-label {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Current Car Section */
.car-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.car-image {
    max-width: 100%;
    height: auto;
    max-height: 150px; /* Adjust as needed */
}

.car-actions {
    display: flex;
    justify-content: space-around; /* Or space-between/center */
    gap: 10px;
}

.car-action-button {
    flex: 1;
    background-color: #F0F0F0;
    border: 1px solid #E0E0E0;
    color: #333;
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}
.car-action-button:hover {
    background-color: #e5e5e5;
}

/* Reservation History Section */
.reservation-history-section {
    margin-bottom: 25px;
}

.reservation-history-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

#reservationHistoryList .reservation-history-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.reservation-history-item h4 {
    font-size: 1em;
    font-weight: 600;
    color: #1c1c1e;
    margin-top: 0;
    margin-bottom: 8px;
}

.reservation-history-item .location {
    font-size: 0.85em;
    color: #636366;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.reservation-history-item .location i {
    margin-right: 6px;
    color: #888;
}

.reservation-history-item .details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid */
    gap: 8px;
    font-size: 0.8em;
}

.reservation-history-item .detail-item {
    display: flex;
    flex-direction: column; /* Stack label and value */
}

.reservation-history-item .detail-item .label {
    color: #777;
    margin-bottom: 2px;
    font-weight: 500;
}

.reservation-history-item .detail-item .value {
    color: #333;
    font-weight: normal;
}

#reservationHistoryList .no-history-message {
    text-align: center;
    color: #777;
    padding: 20px;
    font-size: 0.9em;
}