/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Variables */
:root {
    --primary-color: #003B5C;
    --secondary-color: #0094D3;
    --accent-color: #E4E6E9;
    --background-color: #F9F9F9;
    --text-color: #2E3A40;
    --input-background-color: #FFFFFF;
    --input-border-color: #CED4DA;
    --input-focus-border-color: #003B5C;
    --button-background-color: #0094D3;
    --button-hover-background-color: #003B5C;
    --toast-success-color: #28A745;
    --toast-error-color: #DC3545;
    --toast-warning-color: #FFC107;
    --toast-info-color: #17A2B8;
    --label-text-color: #6C757D; 
    --label-focus-color: #003B5C; 
    --glass-background: rgba(255, 255, 255, 0.25);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-blur: 10px;
    --glass-border-radius: 10px;
    --glass-box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    height: 60px;
    box-sizing: border-box;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-right: 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.leaflet-marker-icon {
    transition: opacity 0.3s ease-in-out;
}

.leaflet-marker-fade-in {
    opacity: 1 !important;
}

/* Main Content Styles */
main {
    flex: 1;
    margin-top: 60px;
    position: relative;
    z-index: 999;
    overflow: hidden;
}

#map {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
    opacity: 1;
}

/* UI Components */
.info-window, .filter-control, .news-feed {
    position: absolute;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 1000;
}

/* Filter Sidebar */
#filter-sidebar {
    display: none;
    position: absolute;
    top: 150px;
    left: 10px;
    width: 250px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 1000;
    background-color: var(--background-color);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    pointer-events: auto !important;
}

#filter-sidebar select,
#filter-sidebar input,
#filter-sidebar button {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
}

/* Info Window */
.info-window {
    position: fixed !important;
    right: 456px !important;
    width: 350px;
    top: 63px;
    bottom: 65px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 170px) !important;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    padding: 10px;
}

.info-window-content {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.info-window-content table {
    width: 100%;
    table-layout: fixed;
}


.info-window-content td, .info-window-content th {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-window-content::-webkit-scrollbar {
    width: 8px;
}

.info-window-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.info-window-content::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.info-window-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.info-window h3 {
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: 1px solid #eee;
}

.info-window p {
    margin: 10px 0;
}

.info-section {
    margin-bottom: 25px;
}

.info-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
}

.info-item {
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--label-text-color);
    margin-bottom: 3px;
    display: block;
}

.info-value {
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    max-width: calc(100% - 12px);
    font-weight: bold;
}

.info-value[class*="status-"] {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-word;
    max-width: calc(100% - 12px);
}

.flag-icon {
    width: 1.5em;
    height: 1.5em;
    margin-right: 5px;
    vertical-align: middle;
}

.info-value,
.project-details,
.news-summaries {
    text-overflow: unset;
    overflow: visible;
}

/* In styles.css */

.info-value.status-indicator {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    padding: 4px 8px 4px 0;
    border-radius: 4px;
}

.status-bar {
    width: 4px;
    height: 16px;
    margin-right: 8px;
    border-radius: 2px;
}

.status-bar.operational { background-color: #4CAF50; }
.status-bar.under-construction { background-color: #FFC107; }
.status-bar.pre-fid { background-color: #2196F3; }
.status-bar.cancelled { background-color: #F44336; }
.status-bar.idle { background-color: #9E9E9E; }

/* Remove any lingering status-specific styles if they exist */
.status-operational, .status-under-construction, .status-pre-fid, .status-cancelled, .status-idle {
    background-color: transparent;
    color: inherit;
}

.project-title,
.project-type,
.project-details,
.news-summaries,
.associated-projects li,
.info-value,
.info-label {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.associated-projects {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.associated-projects li {
    margin-bottom: 5px;
}

.project-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.project-details,
.news-summaries {
    font-size: 14px;
    line-height: 1.6;
}

/* Scrollbar Styles */
.project-details::-webkit-scrollbar,
.news-summaries::-webkit-scrollbar {
    width: 8px;
}

.project-details::-webkit-scrollbar-track,
.news-summaries::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.project-details::-webkit-scrollbar-thumb,
.news-summaries::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.project-details::-webkit-scrollbar-thumb:hover,
.news-summaries::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* News Feed */
.news-feed {
    top: 10px;
    right: 10px;
    width: 400px;
    bottom: 10px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: none;
}

/* Control Panel */
.control-panel {
    position: fixed !important;
    top: 70px;
    left: 10px;
    z-index: 1001;
    background-color: var(--background-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 8px;

}

.control-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 3px;
    padding: 8px;
    margin: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.control-button:hover {
    background-color: var(--secondary-color);
}

.control-button.active {
    background-color: var(--accent-color);
}

.control-button i {
    font-size: 18px;
}

/* Range Input Styles */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
}

/* Search Control */
#search-control {
    top: 70px;
    right: 320px;
    width: 250px;
    position: absolute;
    z-index: 1001;
}

#search-control input[type="text"],
#search-control button {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
    z-index: 1002;
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-color);
    border: 1px solid #ddd;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.search-results ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.search-results li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-results li:hover {
    background-color: #f0f0f0;
}

.search-results li:last-child {
    border-bottom: none;
}

/* Buttons */
.button {
    background: var(--button-background-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background: var(--button-hover-background-color);
}

/* News Feed Styles */
.news-feed h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

#news-filter {
    margin-bottom: 15px;
    position: relative;
    z-index: 1001;
    cursor: pointer;
    pointer-events: auto;
}

#projectFilter {
    width: 100%;
    padding: 5px;
    z-index: 1002;
    position: relative;
    cursor: pointer;
    pointer-events: auto;
}

#ownerFilter {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    height: 100px;
    overflow-y: auto;
    z-index: 1001;
    position: relative;
    cursor: pointer;
    pointer-events: auto !important;
}

#ownerFilter option {
    padding: 5px;
    z-index: 1002;
    position: relative;
    cursor: pointer;
    pointer-events: auto !important;
}

#ownerFilter option:hover {
    background-color: #f0f0f0;
}

#ownerFilter::-webkit-scrollbar {
    width: 8px;
}

#ownerFilter::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#ownerFilter::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

#ownerFilter::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

#ownerFilter::-webkit-scrollbar-thumb:active {
    background: var(--primary-color);
}

#ownerFilter::-webkit-scrollbar-thumb:window-inactive {
    background: var(--primary-color);
}

#clearOwnerFilter {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#clearOwnerFilter:hover {
    background-color: var(--primary-color);
}

#news-articles {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    position: relative;
    z-index: 1001;
}

.news-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h5 {
    margin: 0 0 5px 0;
}

.news-item p {
    margin: 0;
    font-size: 0.9em;
}

.refresh-button {
    background: var(--button-background-color);
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.refresh-button:hover {
    background: var(--button-hover-background-color);
}

.refresh-news-btn {
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.refresh-news-btn.glassmorphism {
    background: var(--glass-background);
    backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    box-shadow: var(--glass-box-shadow);
}

.refresh-news-btn.glassmorphism:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Legend Styles */



.legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--background-color);
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
    width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    cursor: move;
    opacity: 0;
}

.legend.loaded {
    opacity: 1;
}

.legend-content {
    max-height: none; 
    overflow-y: auto;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
}

.legend select,
.legend input,
.legend button {
    cursor: auto;
}

/* LNG Ticker */
#lng-ticker {
    display: flex;
    align-items: center;
    color: white;
    font-size: 0.9em;
    margin-left: auto;
    padding-left: 20px;
}

.ticker-item {
    margin-left: 15px;
    white-space: nowrap;
}

.ticker-item::before {
    content: '';
    margin-right: 5px;
}

/* Custom Marker Styles */
.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
}

/* LNG Visualization */
#lng-visualization {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.draggable-window {
    position: absolute;
    top: 100px;
    left: 100px;
    width: 400px;
    height: 300px;
    background-color: var(--background-color);
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
}

.window-header {
    background-color: #f0f0f0;
    padding: 10px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-cluster-icon {
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.custom-cluster-icon:hover {
    box-shadow: 0 0 0 8px rgba(255,255,255,0.5);
    transform: scale(1.05);
}

.cluster-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-align: center;
    overflow: hidden;
}

.cluster-content {
    font-size: 16px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    padding: 4px;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.capacity-view .cluster-content {
    font-size: 14px;
}


.status-unknown { background-color: #757575; }
.status-cancelled { background-color: #F44336; }
.status-pre-fid { background-color: #2196F3; }
.status-under-construction { background-color: #FFC107; }
.status-idle { background-color: #9E9E9E; }
.status-operational { background-color: #4CAF50; }

.size-40 { width: 40px; height: 40px; }
.size-50 { width: 50px; height: 50px; }
.size-60 { width: 60px; height: 60px; }
.size-70 { width: 70px; height: 70px; }
.size-80 { width: 80px; height: 80px; }

.cluster-content {
    font-size: 14px;
}

.window-header h3 {
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.window-content {
    padding: 15px;
    height: calc(100% - 50px);
    overflow-y: auto;
}

#lng-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

#lng-controls select {
    width: 48%;
    padding: 5px;
}

#lng-chart {
    width: 100%;
    height: calc(100% - 40px);
}

.resizer {
    width: 10px;
    height: 10px;
    background-color: transparent;

    position: absolute;
    right: 0;
    bottom: 0;
    cursor: se-resize;
}

#toggleLNGVisualization.active {
    background-color: var(--accent-color);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 15px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1001;
    max-width: 300px;
    text-align: center;
}

.toast.show {
    opacity: 1;
}

.toast.success { background-color: var(--toast-success-color); }
.toast.error { background-color: var(--toast-error-color); }
.toast.warning { background-color: var(--toast-warning-color); }
.toast.info { background-color: var(--toast-info-color); }

/* Marker Cluster Styles */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(0, 136, 204, 0.6);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: rgba(0, 136, 204, 0.8);
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster-small { width: 30px; height: 30px; }
.marker-cluster-medium { width: 40px; height: 40px; }
.marker-cluster-large { width: 50px; height: 50px; }

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    position: relative;  /* Add this line */
    z-index: 1000;       /* Add this line */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    height: 60px;
    box-sizing: border-box;
}

.footer-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.footer-links li {
    margin-left: 1rem;
}

.footer-links li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: var(--accent-color);
}

.loading {
    opacity: 0.5;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Styles (continued) */
@media (max-width: 768px) {
    .info-window,
    .filter-control,
    .news-feed {
        width: 90%;
        max-height: 60vh;
        left: 5%;
        right: 5%;
        top: 70px;
    }

    .footer-content {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }

    .copyright {
        margin-bottom: 1rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-links li {
        margin: 0.5rem 0;
    }

    .button {
        padding: 5px;
        font-size: 12px;
    }

    .legend {
        max-width: 100px;
    }

    #view-toggle-btn {
        width: 100%;
        margin-top: 5px;
    }
}

/* View Toggle Button */
#view-toggle-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    margin-left: 5px;
}

#view-toggle-btn:hover {
    background-color: var(--secondary-color);
}

/* Project Comparison Section */
#comparison-results {
    margin-top: 20px;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
}

#comparison-results h3 {
    margin-top: 0;
    color: var(--primary-color);
}

#comparison-results table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#comparison-results th,
#comparison-results td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#comparison-results th {
    background-color: var(--secondary-color);
    color: white;
}

/* Filter Styles */
#importExportFilter,
#statusFilter {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

#capacityValue {
    display: block;
    text-align: center;
    margin-top: 5px;
    font-weight: bold;
    color: var(--primary-color);
}

/* styles for h4 of capacity filter and status filter as follows */

#capacityFilter h4, #statusFilter h4, #importExportFilter h4, #ownerFilter h4, #countryFilter h4 {
    margin: 0;
}

#compareProjects {
    width: 100%;
    padding: 8px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#compareProjects:hover {
    background-color: var(--primary-color);
}

#project1,
#project2 {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

/* Leaflet Overrides */
.leaflet-top {
    top: 70px;
}

.leaflet-left {
    left: 10px;
}

/* Ensure proper styling for the news feed */
#news-articles {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Style for the refresh news feed button */
#refresh-news-feed {
    padding: 5px 10px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#refresh-news-feed:hover {
    background-color: var(--primary-color);
}

/* Connection Line */
.connection-line {
    stroke: gray;
    stroke-width: 1;
    stroke-dasharray: 4;
}

/* Draggable elements */
.draggable {
    cursor: move;
}

.draggable:active {
    cursor: grabbing;
}

/* Ensure all pointers are auto for the filter sidebar */
#filter-sidebar * {
    pointer-events: auto !important;
}

/* News feed styles */
.news-feed * {
    pointer-events: auto;
}

/* Search control styles */
#search-control * {
    pointer-events: auto !important;
}

/* Ensure proper styling for all select elements */
.filter-control select {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

/* Style for the info window content */
.info-window h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.info-window ul {
    padding-left: 20px;
    margin-top: 5px;
}

.info-window .project-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.info-window .project-link:hover {
    text-decoration: underline;
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.project-type {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.project-title,
.project-type,
.project-details,
.news-summaries,
.associated-projects li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.news-summaries {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    color: rgb(46, 58, 64);
    font-family: Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-section {
    border-radius: 10px;
    margin: 0;
}

.news-summaries-container {
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.info-section.news-section h3 {
    margin-bottom: 3px;
}

.news-date {
    font-weight: bold;
    color: #4a90e2;
    margin-top: 15px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.news-summaries-group {
    margin-bottom: 15px;
}

.news-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-item a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.news-item a:hover {
    text-decoration: underline;
}

.refresh-news-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.refresh-news-btn:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.refresh-news-btn i {
    margin-right: 5px;
}

.no-news {
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Scrollbar styling */
.news-summaries-container::-webkit-scrollbar {
    width: 8px;
}

.news-summaries-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.news-summaries-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.news-summaries-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}


/* Ensure login overlay is properly displayed */
.login-overlay {
    display: none; /* Default to hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Increased z-index */
}

.login-container {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
}

.login-container input {
    display: block;
    width: calc(100% - 40px);
    margin: 10px auto;
    padding: 10px 10px 10px 30px;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: var(--input-background-color);
    color: var(--text-color); 
}

.login-container input:focus {
    border-color: var(--input-focus-border-color);
    box-shadow: 0 0 5px rgba(26, 95, 122, 0.5);
    outline: none;
}

/* Input Container for Icons */
.input-container {
    position: relative;
    margin-bottom: 15px;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: var(--primary-color);
}

/* Improved Button Styling */
.login-container button {
    display: block;
    width: 100px;
    margin: 10px auto;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-container button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Floating Label Effect */
.login-container input:placeholder-shown + .floating-label {
    font-size: 16px;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    color: var(--label-text-color);
    pointer-events: none;
    transition: 0.2s ease all;
}

.login-container input:focus + .floating-label,
.login-container input:not(:placeholder-shown) + .floating-label {
    top: -10px;
    left: 30px;
    font-size: 12px;
    color: var(--label-focus-color);
}

/* Responsive Design */
@media (max-width: 600px) {
    .login-container {
        width: 90%;
        padding: 15px;
    }

    .login-container input {
        width: calc(100% - 30px);
    }
}

@media (max-width: 768px) {
    .info-window {
        width: 90%;
        left: 5%;
        right: 5%;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Glassmorphism */
.glassmorphism {
    background: var(--glass-background);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--glass-border-radius);
    border: var(--glass-border);
    box-shadow: var(--glass-box-shadow);
    color: var(--text-color);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Customizable glassmorphism variations */
.glassmorphism-light {
    --glass-background: rgba(255, 255, 255, 0.4);
    --glass-blur: 5px;
}

.glassmorphism-dark {
    --glass-background: rgba(0, 0, 0, 0.4);
    --glass-blur: 5px;
}

/* Apply glassmorphism to buttons */
.button.glassmorphism,
.control-button.glassmorphism {
    transition: all 0.3s ease;
    background: var(--glass-background);
    color: var(--text-color);
    border: var(--glass-border);
    box-shadow: var(--glass-box-shadow);
}

.button.glassmorphism:hover,
.control-button.glassmorphism:hover {
    --glass-background: rgba(255, 255, 255, 0.4);
    --glass-box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.5);
}

/* Apply glassmorphism to windows and panels */
.info-window.glassmorphism,
.filter-control.glassmorphism,
.news-feed.glassmorphism,
.legend.glassmorphism,
#filter-sidebar.glassmorphism,
#lng-visualization-window.glassmorphism {
    background: var(--glass-background);
    backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    box-shadow: var(--glass-box-shadow);
}