:root {
    --primary-dark: #1e3b3b;
    --primary-medium: #2f4f4f;
    --primary-light: #98fb98;
    --text-light: #f8f8f2;
    --beige: #f8f8f2;
    --box-shadow: 0 0 15px rgba(152, 251, 152, 0.7);
    --background:
        /* 1. Subtle Radial Glow (Simulates light coming from the center-top) */
        radial-gradient(circle at 50% 0%, rgba(152, 251, 152, 0.1) 0%, transparent 40%),
        /* 2. Main Linear Gradient (Darker, richer green) */
        linear-gradient(145deg, var(--primary-dark) 0%, #172a2a 70%, var(--primary-medium) 100%),
        /* 3. Rich Blue/Teal Base (Adds color depth to the dark areas) */
        #152e2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--background);
}

/* --- 1. Header Layout (Flexbox) --- */
.header {
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 170px;
    z-index: 1000;
    width: 100%;
}

/* --- 2. Logo Styling --- */
.logo a {
    color: var(--primary-light);
    text-decoration: none;
}

.logo h1 {
    color: var(--primary-light);
    font-size: 1.8rem !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    font-weight: 700;
    line-height: 1.1;
}

/* --- 3. Navigation Styling --- */
.nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    font-weight: 500;
}

.nav a {
    text-decoration: none;
    color: var(--text-light);
}

.nav a:hover {
    opacity: 1;
    color: var(--primary-light);
}

/* --- 4. Authentication Buttons Styling (The Right Side) --- */
.auth-buttons {
    display: flex;
    gap: 10px;
}

/* Base style shared by all buttons */
.btn {
    /* Shared Properties for ALL buttons/links */
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    /* Default small size and high roundness for header/standalone CTAs */
    padding: 8px 16px;
    border-radius: 50px;
}

.btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.btn-secondary {
    color: var(--text-light);
    background-color: transparent;
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    color: var(--primary-dark);
    background-color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-primary:hover {
    box-shadow: var(--box-shadow);
}

/* --- Platform Reminder Banner --- */
.platform-reminder {
    text-align: center;
    padding: 15px 25px;
    margin: 20px auto 0; /* Space from header */
    max-width: 800px;
    width: 90%;

    /* Glassmorphism Effect */
    background: rgba(152, 251, 152, 0.1); /* Light green tint */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.platform-reminder p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Hero Section */
/* --- Hero Section Layout (The Container) --- */
.hero-section {
    /* Use flexbox for vertical and horizontal alignment */
    text-align: center;
    display: flex;
    flex-direction: column;
    /* Stack content vertically */
    justify-content: space-between;
    /* Push main content to middle, stats to bottom */
    align-items: center;
    min-height: calc(100vh - 55px);
    position: relative;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.10;
    background-image:
        radial-gradient(var(--primary-light) 1px, transparent 1px),
        radial-gradient(var(--primary-light) 1px, transparent 1px);
    background-size: 24px 24px, 48px 48px;
    background-position: 0 0, 24px 24px;
    animation: patternFloat 20s linear infinite;
    pointer-events: none;
}

/* --- Hero Main Content (Text and Buttons) --- */
.hero-content {
    /* Auto margins to push content away from the header */
    margin: 130px 0;
    /* This centers the block of content, but align-items in .hero-section handles center overall */
    max-width: 1000px;
    padding: 0px 20px;
}

.hero-content h2 {
    color: var(--text-light);
    /* White text */
    font-size: 4rem;
    /* Larger font size */
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.hero-content p {
    color: var(--text-light);
    /* Slightly faded white text */
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* --- Call-to-Action (CTA) Buttons --- */
.cta-buttons {
    display: flex;
    justify-content: center;
    /* Center the buttons within their container */
    gap: 20px;
    padding-top: 50px;
}

.btn-large {
    padding: 20px 55px;
    border-radius: 50px;
}

/* --- Hero Stats (The Bottom Section) --- */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.hero-stat-card {
    background-color: rgba(255, 255, 255, 0.08);
    /* Transparent dark background */
    backdrop-filter: blur(10px);
    /* Glassmorphism effect */
    border-radius: 15px;
    padding: 20px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Light, subtle border */
    color: var(--text-light);
    min-width: 150px;
    margin-bottom: 30px;
    transition: transform 0.3s, background-color 0.3s;
}

.hero-stat-card .hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.hero-stat-card p {
    font-size: 0.9rem;
    color: var(--text-faded);
    /* Faded text for description */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.hero-stat-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Find Charger Charger Section */
.find-charger-section {
    padding: 30px 0;
    text-align: center;
}

.find-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 40px;
    display: inline-block;
    padding-bottom: 5px;
}

/* Map Wrapper and Container */
.map-container-wrapper {
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        /* 1. Main Drop Shadow (Increased spread and opacity for stronger lift) */
        0 10px 40px 0 rgba(0, 0, 0, 0.5),
        /* 2. Primary Green Glow (Wider spread, deeper blur) */
        0 0 20px 5px var(--primary-light),
        /* 3. Secondary, Soft Green Glow (Even wider, softer diffusion) */
        0 0 40px 10px rgba(152, 251, 152, 0.4);
}

.map-container {
    width: 100%;
    height: 100%;
}


/* Floating Elements Styling */
/* Search Bar */
.map-search-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    width: 250px;
    height: 40px;
    z-index: 1000;
}

.map-search-bar input {
    flex-grow: 1;
    border: none;
    padding: 0 15px;
    font-size: 1rem;
    height: 100%;
    border-radius: 5px 0 0 5px;
}

.map-search-bar input:focus {
    outline: none;
}

.map-search-bar .search-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 0 15px;
    cursor: pointer;
    height: 100%;
}

/* Charger Count Bubble */
.charger-count-bubble {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-faded);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Locate Button (Green Arrow) */
.locate-btn {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s;
    /* Rotation to match the image's arrow orientation */
    transform: rotate(45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    z-index: 1000;
}

.locate-btn:hover {
    background-color: #aeffaf;
}

/* How GreenPoint Works */
.hiw-section {
    background-size: 100% 100%;
    /* Ensure all layers cover the area */
    background-repeat: no-repeat;
    padding: 30px 0;
    text-align: center;
}

/* Titles - White text on the dark green background */
.hiw-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 10px;
}

.hiw-subtitle {
    font-size: 1.25rem;
    color: var(--primary-light);
    margin-bottom: 60px;
}

/* --- Steps Grid Layout (4 Columns) --- */
.hiw-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Individual Glass Card (Key to the desired look) */
.glass-card {
    /* Semi-transparent white background */
    background-color: rgba(255, 255, 255, 0.1);
    /* The Glass effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    padding: 30px;
    border-radius: 12px;
    /* Thin light border */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle shadow/glow */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
    /* Slightly less transparent on hover */
}

/* Card Content Styling */
.glass-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
    /* Bright green text for contrast */
    margin-bottom: 10px;
}

.glass-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    /* White text for readability */
    line-height: 1.5;
}

/* Icon Box Styling - Keep it bright green on the dark card */
.glass-card .step-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    /* Bright green background */
    color: var(--primary-dark);
    /* Dark green icon */
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* CTA Button - Re-use existing primary button style */
.hiw-glass-cta-button {
    /* Using the existing .button.primary styles for consistency */
    display: inline-block;
    margin-top: 20px;
    background-color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

/* --- Contact Section --- */
.contact-section {
    background-size: 100% 100%;
    /* Ensure all layers cover the area */
    background-repeat: no-repeat;
    padding: 30px 0;
    text-align: center;
}

/* Titles */
.contact-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: var(--primary-light);
    /* Use light green for the secondary text */
    margin-bottom: 60px;
}

/* --- Content Layout (Info + Form) --- */
.contact-content-grid {
    display: grid;
    /* Two columns: 1 part for info, 2 parts for form (adjust as needed) */
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    padding: 0 20px;
}

/* --- Left Side: Contact Info --- */
.contact-info {
    padding-top: 50px;
    /* Align with the form's top edge */
}

.email-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.email-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.email-headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 3px;
}

.email-address {
    font-size: 1rem;
    color: rgba(248, 248, 242, 0.7);
    /* Slightly transparent white */
}

/* --- Right Side: Contact Form --- */
.contact-form-container {
    background-color: #274747;
    /* Slightly lighter shade than the section background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-form label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 15px 0 5px 0;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #446868;
    border-radius: 5px;
    background-color: #1e3b3b;
    /* Same dark color as section background */
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus {
    border-color: var(--primary-light);
    outline: none;
}

/* Send Message Button */
.btn-rect {
    width: 100%;
    margin-top: 30px;
    padding: 15px 0;
    border-radius: 8px;
}

/* Footer Section */
.footer {
    /* Use your primary dark color */
    background-color: var(--primary-dark);
    padding: 30px 0 0;
    color: var(--text-light);
}

/* Two-column grid for the main content */
.footer-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Branding slightly wider than contact */
    gap: 50px;
    padding-top: 0;
    padding-right: 170px;
    padding-bottom: 50px;
    padding-left: 170px;
    border-bottom: 1px solid rgba(248, 248, 242, 0.1);
    /* Subtle separator line */
}

/* --- Left Side: Branding --- */
.footer-branding {
    display: flex;
    flex-direction: column;
}

.logo-box {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 800;
}

.footer-logo-icon {
    color: var(--primary-light);
    margin-right: 10px;
}

.footer-logo-text {
    color: var(--text-light);
}

.footer-mission {
    font-size: 1rem;
    color: rgba(248, 248, 242, 0.7);
    line-height: 1.5;
    max-width: 250px;
}

/* --- Right Side: Contact --- */
.footer-contact h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-icon {
    color: var(--primary-light);
    width: 20px;
    /* fixed width for alignment */
    margin-right: 10px;
}

.footer-contact a,
.footer-contact span {
    color: var(--text-light);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* --- Copyright Bar --- */
.footer-copyright-bar {
    background-color: rgba(0, 0, 0, 0.1);
    /* Slightly darker bar for separation */
    padding: 20px 170px;
}

.footer-copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(248, 248, 242, 0.6);
}

.legal-links a {
    color: rgba(248, 248, 242, 0.6);
    margin-left: 20px;
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--primary-light);
}

/* Modal */
/* --- Size Modifiers --- */
.button--modal-cta {
    width: 80%;
    margin: 0 auto;
    padding: 15px 30px;
    border-radius: 50px;
    /* Highly rounded corners */
    font-size: 1rem;
}

/* ========================================= */
/* --- 4. Modal Specific Styles --- */
/* ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    position: relative;
    color: var(--text-light);
    transition: all 0.3s ease-in-out;
    max-height: 90vh;
    /* Constraint height for smaller screens */
    overflow-y: auto;
    /* Allow scrolling if content is too tall */
    background: var(--background);
    box-shadow: var(--box-shadow);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    color: var(--primary-light);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

/* Modal View Management */
.modal-view {
    display: none;
}

.modal-view.active-view {
    display: block;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 5px;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Role Selection Cards */
.role-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.role-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.role-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.role-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 15px;
    align-self: center;
}

.role-card h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.role-card p {
    font-size: 0.9rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.role-card .button {
    align-self: flex-end;
}

/* Target input fields when they are active (clicked or focused) */
.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
    /* Ensures the default browser outline is removed for a clean look */
    outline: none;

    /* Apply the box shadow using your variable */
    /* Adjust the first three values (x-offset, y-offset, blur) 
       if you want a different glow effect. */
    box-shadow: 0 0 10px var(--box-shadow);

    /* Optional: Brighten the border for extra emphasis */
    border-color: var(--primary-light);
}

/* Registration Form Styling */
.registration-form {
    display: none;
    max-width: 450px;
    margin: 20px auto;
}

.registration-form.active-form {
    display: block;
}

.registration-form label {
    display: block;
    font-weight: 600;
    margin: 15px 0 5px 0;
    color: var(--primary-light);
}

.registration-form input,
.registration-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #446868;
    border-radius: 5px;
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-size: 1rem;
}

/* --- EDITED CSS: Make form submission buttons highly rounded too --- */
.registration-form .btn {
    margin-top: 30px;
    width: 100%;
    padding: 15px 30px;
    border-radius: 50px;
    /* Highly rounded for consistent CTA look */
}

/* Back Button */
.back-btn {
    background: none;
    border: none;
    color: var(--primary-light);
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 5px 0;
    display: inline-flex;
    align-items: center;
}

.back-btn i {
    margin-right: 8px;
}

/* --- NEW: Style for the modal footer link prompt --- */
.modal-switch-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--text-light);
    /* Base text color (e.g., white) */
}

/* FIX: Ensure the link within the prompt is vibrant and readable */
.modal-switch-prompt a {
    color: var(--primary-light);
    /* Use your bright green variable */
    text-decoration: underline;
    /* Emphasize it's a link */
    font-weight: 600;
    transition: color 0.2s ease;
}

.modal-switch-prompt a:hover {
    color: #aeffaf;
    /* A slightly brighter hover state */
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 650px) {
    .role-cards-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 20px;
    }
}

/* ========================================= */
/* 6. Driver Dashboard Styles                */
/* ========================================= */

.dashboard-page {
    /* Ensures the dashboard takes up vertical space */
    padding: 60px 0 80px; 
    min-height: 80vh;
}

.dashboard-welcome {
    color: var(--primary-light); /* Green heading */
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}

.dashboard-subtitle {
    color: rgba(248, 248, 242, 0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-align: center;
}

/* --- Key Stats Grid --- */
.stats-grid {
    display: grid;
    /* Create three equal columns */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background-color: var(--primary-medium); /* Dark Card Background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    border: 1px solid rgba(152, 255, 152, 0.1); /* Subtle green border */
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.stat-card i {
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 15px;
}

.stat-number {
    color: var(--text-light);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(248, 248, 242, 0.6);
    font-size: 0.95rem;
}

/* --- Data and Activity Sections (Charts/Table Containers) --- */
.data-section,
.activity-section {
    background-color: var(--primary-medium);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.data-section h3,
.activity-section h3 {
    color: var(--primary-light);
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(152, 251, 152, 0.2);
    padding-bottom: 10px;
}

/* Placeholder for charts */
.chart-placeholder {
    height: 300px; 
    background-color: var(--primary-dark); 
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(248, 248, 242, 0.5);
    font-style: italic;
}

/* --- Data Table (Charge History) --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    color: var(--primary-light);
    font-weight: 600;
    padding: 15px 10px;
    border-bottom: 2px solid var(--primary-light);
}

.data-table td {
    color: var(--text-light);
    padding: 15px 10px;
    border-bottom: 1px solid rgba(248, 248, 242, 0.1);
}

.data-table tr:hover {
    background-color: rgba(152, 251, 152, 0.05); /* Subtle hover effect */
}

.container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px; /* Crucial for spacing */
}

/* ========================================= */
/* 7. WhatsApp Floating Bubble               */
/* ========================================= */

.whatsapp-float {
    position: fixed;
    /* Keeps the button in place while scrolling */
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    /* Official WhatsApp green */
    color: #FFF;
    /* White icon */
    border-radius: 50%;
    /* Makes it circular */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    /* Size of the WhatsApp icon */
    text-decoration: none;
    /* Removes underline from the link */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Drop shadow for depth */
    z-index: 1500;
    /* Ensures it's above other content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--box-shadow);
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    /* Lifts the button on hover */
}

/* ========================================= */
/* 6. Dashboard General Styles (Applies to both Driver and Host) */
/* ========================================= */

.dashboard-page {
    /* Ensures the dashboard takes up vertical space */
    padding: 60px 0 80px; 
    min-height: 80vh;
}

.dashboard-welcome {
    color: var(--primary-light); /* Green heading */
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}

/* --- Key Stats Grid --- */
.stats-grid {
    display: grid;
    /* Create three equal columns */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background-color: var(--primary-medium); /* Dark Card Background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    border: 1px solid rgba(152, 255, 152, 0.1); /* Subtle green border */
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.stat-card i {
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 15px;
}
/* ... rest of the stat-card styling ... */


/* --- Data and Activity Sections (Charts/Table Containers) --- */
.data-section,
.activity-section {
    background-color: var(--primary-medium);
    border-radius: 12px;
    padding: 30px;
    /* ... rest of the section styling ... */
}

/* --- Data Table (Charge History/Booking History) --- */
.data-table {
    width: 100%;
    /* ... rest of the table styling ... */
}

/* ========================================= */
/* 8. Mobile Navigation Bar (Hidden by Default) */
/* ========================================= */

.mobile-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    /* Glassmorphism Effect */
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle white background */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* For Safari */
    display: none; /* Hidden on desktop */
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1500;
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Lighter border for the glass edge */
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-light);
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: var(--primary-light);
    opacity: 1;
}

.mobile-nav-link i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.mobile-nav-link span {
    font-size: 0.7rem;
    font-weight: 500;
}


/* Mobile CSS */
@media (max-width: 767px) {

    /* --- Header & Navigation --- */
    .header {
        display: none; /* Hide desktop header */
    }

    .mobile-nav-bar {
        display: flex; /* Show mobile nav bar */
    }

    /* --- General Layout & Padding --- */
    body {
        padding-bottom: 65px; /* Add space for the bottom nav bar */
    }

    .container {
        padding: 0 15px; /* Reduce side padding */
    }

    /* --- Hero Section --- */
    .hero-section {
        min-height: 90vh;
        justify-content: center; /* Center content vertically */
    }

    .hero-content h2 {
        font-size: 2.5rem; /* Smaller title for mobile */
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column; /* Stack buttons */
        align-items: center;
        gap: 15px;
    }

    .btn-large {
        padding: 15px 30px; /* Smaller buttons */
        width: 90%;
        font-size: 1rem;
    }

    .hero-stats {
        display: none; /* Hide stats on mobile for a cleaner look */
    }

    /* --- Find Charger Section --- */
    .find-charger-section {
        padding: 40px 20px; /* Consistent horizontal padding */
    }

    .find-section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .map-search-bar {
        left: 15px;
        right: 15px;
        width: auto; /* Allow flexible width */
    }

    .locate-btn {
        right: 15px;
    }

    .charger-count-bubble {
        left: 15px;
    }

    .map-container-wrapper {
        border-radius: 0; /* Full width map */
    }

    /* --- How It Works Section --- */
    .hiw-section {
        padding: 40px 20px; /* Consistent horizontal padding */
    }

    .hiw-title {
        font-size: 2rem;
    }

    .hiw-subtitle {
        margin-bottom: 40px;
    }

    .hiw-grid {
        grid-template-columns: 1fr; /* Single column grid */
        gap: 20px; 
        padding: 0; /* Remove desktop padding */
    }

    /* --- Contact Section --- */
    .contact-section {
        padding: 40px 20px; /* Consistent horizontal padding */
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-subtitle {
        margin-bottom: 40px;
    }

    .contact-content-grid {
        grid-template-columns: 1fr; /* Single column grid */
    }

    .contact-info {
        padding-top: 0;
        padding-bottom: 20px; /* Add space above the form */
        text-align: center;
    }

    /* --- Footer --- */
    .footer-content-grid {
        grid-template-columns: 1fr; /* Single column */
        text-align: center;
        padding: 40px 20px;
    }

    .footer-branding, .footer-contact {
        align-items: center;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
    }

    .footer-mission {
        max-width: none; /* Allow text to flow naturally */
    }

    .contact-item {
        justify-content: center; /* Center the icon and text within the item */
    }

    .legal-links {
        display: flex;
        justify-content: center;
        gap: 15px; /* Add space between links */
    }

    .legal-links a {
        white-space: nowrap; /* Prevents text inside links from wrapping */
    }

    .copyright-text {
        white-space: nowrap; /* Prevents copyright text from wrapping */
    }

    .footer-copyright-content {
        flex-direction: column; /* Stack copyright and links */
        gap: 15px;
    }

    /* --- Floating WhatsApp Button --- */
    .whatsapp-float {
        bottom: 80px; /* Raise it above the nav bar */
        right: 15px;
    }
}

