#map {
    width: 100% !important; /* Adjust the width as needed */
    height: 500px !important; /* Adjust the height as needed */
    position: relative !important;
}

.additional-content {
    width: 30%; /* Adjust the width as needed */
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 1px solid #ddd;
}

.map-container {
    display: flex;
    width: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    min-width: 320px; /* Prevent extreme narrowing on small screens */

}

.colorbar-container {
    display: flex ;
    margin-top: 20px;
}

.data-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
}

/* Enhanced Page Title Styling */
.page-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 2.6em;
    color: #2c3e50;
    font-weight: 700;
    margin: 30px 0 25px;
    text-align: center;
    font-family: inherit;
    width: 100%;
    max-width: 1200px;
    padding: 10px 20px;
    position: relative;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
    border-bottom: 3px solid #3498db;
    position: relative;
}


/* Enhanced Paragraph Styling */
p {
    font-size: 1.3em;
    line-height: 1.7;
    margin: 1.2em 0;
    color: #333;
    max-width: 80ch;
    letter-spacing: 0.01em;
    font-weight: 400;
    word-spacing: 0.05em;
    hyphens: auto;
}

/* First paragraph special styling */
/* p:first-of-type {
    font-size: 1.4em;
    color: #2c3e50;
    line-height: 1.8;
    font-weight: 500;
} */

/* Enhanced .additional-content paragraphs */
.additional-content p {
    font-size: 1.35em;
    margin: 1.5em 0;
    text-align: center;
    color: #2c3e50;
    line-height: 1.8;
    letter-spacing: 0.02em;
    padding: 0 15px;
    font-weight: 500;

}

/* Important paragraphs */
p.important {
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: 0 5px 5px 0;
    font-weight: 500;
    color: #2c3e50;
}

/* Note paragraphs */
p.note {
    font-size: 1.15em;
    font-style: italic;
    color: #7f8c8d;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ecf0f1;
}

/* Paragraph with links */
p a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.2s ease;
}

p a:hover {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.2em;
        margin: 20px 0 15px;
    }
    
    p, .additional-content p {
        font-size: 1.2em;
        line-height: 1.6;
        margin: 1em 0;
    }
}

h1, h2 {
    color: rgb(51, 51, 51);
    font-weight: bold;
    font-size: 3em;
    text-align: center; /* Center align the text */
}

/* p {
    font-size: 1.3em;
    line-height: 1.6;
    margin: 1em 0;
    color: rgb(51, 51, 51);
    max-width: 80ch; /* Improves readability by limiting line length */
} */

/* Add more spacing after the paragraph */
.additional-content p {
    font-size: 2em;
    margin-top: 25px;  
    margin-bottom: 25px;  
    text-align: center; /* Center align the text */
    color: rgb(51, 51, 51);
}

/* You can also add padding to the top of the form for additional spacing */
#filter-form {
    padding-top: 10px;
}
/* Update the dropdown styles */
.dropdown-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.dropdown-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dropdown-label {
    font-size: 1.2em;
    color: rgb(51, 51, 51);
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.header-dropdown {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1em;
    width: 100%;
}

/* Enhanced table container styling */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: white;
}

/* Better overall table styling */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-family: inherit;
    color: rgb(51, 51, 51);
    border-radius: 8px;
    overflow: hidden;
}

/* Improved header styling */
.data-table th {
    background-color: rgb(62, 76, 94);
    color: white;
    font-weight: 600;
    font-size: 1.3em;
    padding: 14px 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none;
    text-align: left;
}

/* Enhanced cell styling */
.data-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 1.1em;
    border-bottom: 1px solid #eaeaea;
    border-right: none;
    border-left: none;
    transition: background-color 0.2s ease;
}

/* Make sticky headers more distinct */
.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* First column emphasis */
.data-table td:first-child,
.data-table th:first-child {
    font-weight: 500;
}

/* Last row styling */
.data-table tr:last-child td {
    border-bottom: none;
}

/* Better alternating row colors */
.data-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Enhanced hover effect */
.data-table tbody tr:hover {
    background-color: rgba(33, 150, 243, 0.05);
}

/* Improved link styling in tables */
.data-table a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.data-table a:hover {
    color: #0d6efd;
}

.data-table a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #0d6efd;
    transition: width 0.2s ease;
}

.data-table a:hover:after {
    width: 100%;
}

/* Responsive improvements for smaller screens */
@media (max-width: 768px) {
    .data-table th, 
    .data-table td {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    
    .data-table th {
        font-size: 1em;
    }
}

/* Style for numeric columns - align right */
.data-table td.numeric,
.data-table th.numeric {
    text-align: right;
}

/* Style for date columns */
.data-table td.date,
.data-table th.date {
    white-space: nowrap;
}

/* Optional: Add this class to any table you want to make compact */
.data-table.compact th,
.data-table.compact td {
    padding: 8px 10px;
    font-size: 0.9em;
}


.info-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: bold;
}

/* Legend styles */
.legend {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.legend .color-box {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background-color: red; /* Example color, update dynamically */
}

.pollutants-key-container {
    margin-top: 20px;
    width: 100%;
    padding: 5px;
}

.pollutants-key-overlay {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-bottom: 15px;
}

.pk-row {
    display: flex;
    width: 100%;
    height: 30px; /* Fixed height for color boxes */
}

.pk-column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #ddd;
    padding: 4px 0;
    font-size: 12px;
    font-weight: bold;
}

.pk-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px;
    border-radius: 3px;
    display: none;
    white-space: nowrap;
    z-index: 1000;
    font-size: 12px;
}

.pk-column:hover .pk-popup {
    display: block;
}

/* Make the second row label full width and distinct */
.pk-row:nth-child(2) .pk-column {
    background-color: white !important;
    border-top: none;
}

/* Add this to annual-means.css */
#show-plot-button {
    background-color: rgb(62, 76, 94);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    width: auto;
    display: inline-block;
    text-align: center;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#show-plot-button:hover {
    background-color: rgb(72, 88, 108);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#show-plot-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.colorbar-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    border: 1px solid #ddd;
    min-width: 200px; /* Prevents excessive shrinking */
    width: 100%; /* Takes full width of parent */
}

.colorbar-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

/* Button container styling */
.button-container {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
/* Spinner inside the button */
.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 0.6s linear infinite;
    display: none; /* Hide spinner by default */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide the button text when loading */
.button-loading .button-text {
    display: none;
}

/* Show the spinner when loading */
.button-loading .spinner {
    display: inline-block;
}

/* Button container styling */
.button-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }

  .limit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #000;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    z-index: 20;
}

/* Make the popup appear on hover */
.limit-dot:hover .pk-popup {
    visibility: visible;
    opacity: 1;
}

/* Ensure the limit dot popup stays visible when hovering */
.limit-dot .pk-popup {
    position: absolute;
    width: auto;
    white-space: nowrap;
    left: 25px;
    top: 0;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 25;
}

/* Threshold controls styling */
.threshold-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.threshold-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 120px;
}

.threshold-label {
    font-size: 1.2em;
    color: rgb(51, 51, 51);
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.threshold-input {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1em;
    width: 100%;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px; /* Align with inputs */
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-wrapper label {
    font-size: 1.1em;
    color: rgb(51, 51, 51);
    cursor: pointer;
}

/* Add styles for the table filter controls */
.table-filter-container {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-filter-form {
    display: flex;
    flex-direction: column;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-item label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.filter-item select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.filter-button-container {
    display: flex;
    gap: 10px;
}

.filter-button, .reset-button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.filter-button {
    background-color: #4CAF50;
    color: white;
}

.reset-button {
    background-color: #f44336;
    color: white;
}

.filter-button:hover {
    background-color: #45a049;
}

.reset-button:hover {
    background-color: #d32f2f;
}

.no-results {
    padding: 15px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 4px;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

/* Ensure responsiveness for the filter controls */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-item {
        width: 100%;
    }
    
    .filter-button-container {
        margin-top: 10px;
    }
}
