body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #e0e0e0; /* Updated */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top for scrollable content */
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 420px; /* Updated */
    min-height: 100vh; /* Ensure it takes full height for background */
    background-color: #ffffff; /* Updated */
    box-shadow: 0 0 15px rgba(0,0,0,0.2); /* Updated */
    display: flex;
    flex-direction: column;
    position: relative; /* For potential absolute positioned elements */
    overflow: hidden; /* Added */
    padding-bottom: 70px; /* Space for bottom navigation bar */
}

/* Status Bar */
.status-bar-placeholder {
    background-color: #ffffff; /* Match pricesStyle.css */
    color: #000; /* Match pricesStyle.css */
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px; /* Match pricesStyle.css */
    height: 30px; /* Match pricesStyle.css */
    position: relative; /* Ensure notch is positioned correctly */
}

.status-bar-placeholder .time {
    font-weight: 500; /* Consistent with pricesStyle.css */
}

.notch-placeholder { /* Match pricesStyle.css */
    width: 10px; 
    height: 10px; 
    background-color: #000;
    border-radius: 50%; 
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px; 
}

.status-bar-placeholder .status-icons { /* Match pricesStyle.css (no specific flex styles) */
}

.status-icons i { /* Match pricesStyle.css */
    margin-left: 8px;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px; /* Updated to match searchStyle.css .main-header */
    background-color: #fff; /* Added to match searchStyle */
}

.user-info-container-link {
    text-decoration: none;
    color: inherit; /* Ensures text color is not overridden by default anchor styling */
}

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

.user-icon-main {
    font-size: 40px; /* Slightly reduced for balance */
    color: #A0A0A0; 
    margin-right: 10px;
}

.user-details .welcome-text {
    font-size: 1em; /* Adjusted for consistency */
    font-weight: 600; /* Adjusted */
    margin: 0 0 2px 0;
    color: #1c1c1e; /* Darker, from searchStyle */
}

.balance-info {
    display: flex;
    align-items: center;
    font-size: 0.85em; /* Adjusted */
    color: #333;
}

.balance-info i {
    margin-right: 5px;
    color: #444; /* Consistent icon color */
}

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

.header-actions a {
    color: #000;
    text-decoration: none;
}

.header-actions .header-icon {
    font-size: 1.2em; /* From searchStyle */
    color: #444; /* From searchStyle */
    margin-left: 15px; /* Adjusted spacing */
    cursor: pointer;
}

.header-divider { /* Consider if this is still needed with new header bg */
    border: none;
    border-top: 1px solid #f0f0f0; /* Lighter divider */
    margin: 0 15px; /* Match header padding */
}

/* Main Content */
.main-content {
    padding: 20px;
    flex-grow: 1;
}

.content-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #000;
}

.section-header .info-icon {
    font-size: 18px;
    color: #888;
}

/* Charging Docks Section */
.map-link {
    display: block;
    text-decoration: none;
}
.map-placeholder {
    height: 180px;
    background-color: #2c2c2c; /* Dark map background */
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden; /* To ensure rounded corners apply to pseudo-elements if used */
    background-image: url('../assets/map_example.jpg'); /* Added */
    background-size: cover; /* Added */
    background-position: center; /* Added */
    background-repeat: no-repeat; /* Added */
}

.map-search-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* For handle positioning */
}

.map-search-icon-lens {
    width: 70px;
    height: 70px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.map-search-icon-lens i.fa-gas-pump {
    font-size: 32px;
    color: #333; /* Dark icon on white background */
}

.map-search-icon-handle {
    width: 12px; /* Width of the handle's bar */
    height: 30px; /* Length of the handle */
    background-color: white;
    position: absolute;
    right: -15px; /* Position it outside the lens */
    bottom: -15px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border-radius: 3px;
}


/* Average Prices Section */
.chart-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.chart-layout-container {
    display: flex;
    align-items: flex-start; /* Align items to the top */
}

.y-axis-labels-and-title-container {
    display: flex;
    flex-direction: column;
    margin-right: 10px; /* Space between Y-labels and chart area */
    width: auto; /* Let it size by content, e.g., "Supplier X" */
    flex-shrink: 0; /* Don't shrink this part */
}

.y-axis-labels {
    font-size: 12px;
    color: #333;
}

.y-axis-labels div {
    margin-bottom: 13px; /* Spacing between supplier names, align with bars */
    height: 20px; /* Match bar height + margin for alignment */
    display: flex;
    align-items: center;
}
.y-axis-labels div:last-child {
    margin-bottom: 0;
}


.x-axis-title-container {
    margin-top: 10px; /* Space below supplier labels */
}
.x-axis-unit {
    font-size: 11px;
    color: #555;
}

.chart-area {
    flex-grow: 1;
    position: relative;
}

.chart-bars-container {
    position: relative;
    z-index: 2; /* Bars above grid lines */
}

.chart-bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px; /* Space between bars */
    height: 20px; /* Height of each bar */
}
.chart-bar-item:last-child {
    margin-bottom: 0;
}

.bar {
    height: 100%;
    background-color: #D3D3D3; /* Light gray bars */
    border-radius: 0 2px 2px 0; /* Slightly rounded right corners */
    transition: width 0.5s ease-out;
}

.chart-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(5 * 25px - 5px); /* 5 bars * (height + margin) - last margin */
    z-index: 1; /* Grid lines behind bars */
    display: flex;
    justify-content: space-between; /* This might not be needed if lines are absolutely positioned */
}

.grid-line {
    position: absolute;
    top: -2px; /* Align with top of bar area */
    bottom: -2px; /* Align with bottom of bar area */
    border-left: 1px dashed #B0B0B0;
}

.x-axis {
    margin-top: 5px; /* Space above x-axis line */
    position: relative;
}

.x-axis-line {
    width: 100%;
    height: 1px;
    background-color: #888; /* Darker line for axis */
}

.x-axis-ticks {
    display: flex;
    position: absolute;
    top: 5px; /* Below the line */
    left: 0;
    width: 100%;
    height: 15px; /* For tick labels */
}

.x-axis-tick-label {
    position: absolute;
    font-size: 10px;
    color: #555;
    transform: translateX(-50%); /* Center the label on the tick */
}

/* Ensure links are clickable */
a {
    cursor: pointer;
}