:root {
    --bg-main: transparent;
    --bg-sec: rgba(10, 10, 10, 0.6);
    --bg-dark: #050505;
    --neon-green: #39ff14;
    --neon-green-dim: rgba(57, 255, 20, 0.2);
    --text-dark: #eaeaea;
    --text-muted: #999999;
    --text-light: #ffffff;
    --border-color: #222222;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at top, rgba(7, 26, 17, 0.95), rgba(0, 0, 0, 0.97) 48%, #000 100%);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.text-muted {
    color: var(--text-muted);
}

.text-white {
    color: var(--text-light) !important;
}

.neon-text {
    color: #2ecc71;
}

.dark-bg {
    background: var(--bg-dark);
    color: var(--text-light);
}

.dark-bg h1,
.dark-bg h2,
.dark-bg h3,
.dark-bg h4 {
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
    text-align: center;
}

.btn-primary {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 5px 15px var(--neon-green-dim);
}

.btn-primary:hover {
    background: #000;
    color: var(--neon-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.1);
}

.btn-secondary:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
}

.btn-dark {
    background: #000;
    color: var(--neon-green);
}

/* Navigation */
header {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.logo {
    display: inline-flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-img {
    height: 45px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px;
    left: 0;
    background: var(--neon-green);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.admin-link {
    border: 2px solid var(--neon-green);
    padding: 8px 16px;
    border-radius: 50px;
    margin-left: 15px;
}

.admin-link::after {
    display: none !important;
}

.admin-link:hover {
    background: var(--neon-green);
    color: #000 !important;
}

/* Cards & Layout */
.section {
    padding: 100px 0;
}

.bg-sec {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 50px;
}

.card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-bottom-color: var(--neon-green);
}

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 45%;
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 25px;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 100px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .hero-image {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.icon-large {
    font-size: 3.5rem;
    color: #000;
    margin-bottom: 25px;
    transition: color 0.3s;
}

.card:hover .icon-large {
    color: #2ecc71;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.pt-5 {
    padding-top: 3rem;
}

/* Global Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-green);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px var(--neon-green-dim);
}

/* Admin Flow */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-sec);
}

.admin-login-box {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 450px;
    border-top: 6px solid var(--neon-green);
    border-bottom: 6px solid var(--neon-green);
}

/* Admin Dashboard layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--bg-dark);
    color: #fff;
    padding: 30px;
    position: fixed;
    height: 100vh;
}

.sidebar-logo {
    display: block;
    margin-bottom: 50px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #aaa;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: #222;
    color: var(--neon-green);
}

.main-content {
    margin-left: 280px;
    flex-grow: 1;
    padding: 40px;
    background: var(--bg-sec);
    min-height: 100vh;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
}

.table th {
    padding: 0 20px;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.table td {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.d-block {
    display: block;
}

.w-100 {
    width: 100%;
}

main,
footer,
#app-content {
    position: relative;
    z-index: 2;
}

#real-map-bg {
    overflow: hidden;
    filter: saturate(1.1) brightness(1.0);
}

#real-map-bg .leaflet-container {
    background: transparent !important;
}

#real-map-bg .leaflet-tile-pane img {
    filter: saturate(1.0) brightness(1.05) contrast(1.18);
}

#real-map-bg .leaflet-control-attribution {
    display: none;
}

.map-ambient-copy {
    position: fixed;
    top: 122px;
    left: 24px;
    z-index: 2;
    width: min(340px, calc(100vw - 48px));
    padding: 18px 20px;
    border: 1px solid rgba(57, 255, 20, 0.18);
    border-radius: 20px;
    background: linear-gradient(140deg, rgba(4, 14, 10, 0.78), rgba(0, 0, 0, 0.3));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    pointer-events: none;
}

.map-ambient-copy span {
    display: block;
    margin-bottom: 8px;
    color: rgba(57, 255, 20, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.map-ambient-copy strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

.map-credit {
    position: fixed;
    left: 24px;
    bottom: 18px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    pointer-events: none;
}

/* Chatbot */
.chatbot-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    background: #000;
    color: var(--neon-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: 0.3s;
}

.chatbot-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.chatbot-window {
    position: fixed;
    bottom: 130px;
    right: 40px;
    width: 380px;
    height: 550px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid rgba(57, 255, 20, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transition: 0.3s;
    transform-origin: bottom right;
}

.chatbot-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.chatbot-header {
    background: #000;
    color: var(--neon-green);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.chatbot-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: transparent;
}

.message {
    padding: 15px;
    border-radius: 16px;
    max-width: 85%;
    font-size: 0.95rem;
}

.message.bot {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: #fff;
}

.message.user {
    background: var(--neon-green);
    color: #000;
    font-weight: 600;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-input {
    display: flex;
    padding: 20px;
    background: transparent;
    border-top: 1px solid rgba(57, 255, 20, 0.2);
}

.chatbot-input input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    color: #fff;
}

.chatbot-input input:focus {
    outline: none;
}

.chatbot-input button {
    background: #000;
    color: var(--neon-green);
    border: none;
    padding: 0 25px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Custom Additions */
.badge {
    background: rgba(57, 255, 20, 0.15);
    color: var(--neon-green);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border: 1px solid rgba(57, 255, 20, 0.3);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.15);
}

.chat-faq-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: var(--neon-green);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: left;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-faq-btn:hover {
    background: rgba(57, 255, 20, 0.1);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

/* Custom Range Slider */
.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    border-radius: 50px;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--neon-green);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.custom-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--neon-green);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

/* Realistic Map Background initialized via JS Leaflet */
.custom-leaflet-car {
    background: transparent !important;
    border: none !important;
}

.delhi-route {
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Removed stroke-dasharray for solid lines */
}

.ev-car-marker {
    position: relative;
    width: 28px;
    height: 16px;
}

.ev-car-shell {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.8));
    transition: transform 0.1s linear;
}

.ev-station-marker {
    position: relative;
    width: 18px;
    height: 18px;
}

.ev-station-marker::before,
.ev-station-marker::after {
    content: '';
    position: absolute;
    border-radius: 3px;
}

.ev-station-marker::before {
    inset: 0;
    background: #39ff14;
    box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.4), 0 0 15px rgba(57, 255, 20, 0.6);
    transform: rotate(45deg);
}

.ev-station-marker::after {
    inset: -6px;
    border: 1px solid rgba(57, 255, 20, 0.3);
    animation: station-pulse 2.4s ease-out infinite;
    transform: rotate(45deg);
}

@keyframes station-pulse {
    0% {
        transform: scale(0.8) rotate(45deg);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.8) rotate(45deg);
        opacity: 0;
    }
}

@media (max-width: 992px) {
    .header-container {
        height: auto;
        padding: 18px 0;
        flex-direction: column;
        gap: 14px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 12px;
    }

    .nav-links a {
        margin: 0 6px;
        font-size: 0.85rem;
    }

    .admin-link {
        margin-left: 0;
        margin-top: 5px;
        display: block;
        text-align: center;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .main-content {
        margin-left: 0;
        padding: 24px;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .map-ambient-copy {
        top: auto;
        bottom: 106px;
        left: 16px;
        width: calc(100vw - 32px);
    }

    .map-credit {
        left: 16px;
        bottom: 88px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 76px 0;
    }

    .page-title {
        font-size: 2.4rem;
    }

    .section-title,
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .card {
        padding: 24px !important;
    }

    .chatbot-window {
        right: 12px;
        bottom: 100px;
        width: calc(100vw - 24px);
        max-width: 380px;
        height: min(560px, 72vh);
    }

    .chatbot-btn {
        right: 16px;
        bottom: 18px;
        width: 62px;
        height: 62px;
    }
}
