@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #3498db; /* Brighter blue */
    --primary-hover: #2980b9; /* Darker blue for hover */
    --background-light: #f4f7f6; /* Light grey background */
    --container-bg: #ffffff;
    --text-dark: #333333;
    --text-light: #555555;
    --border-color: #dee2e6;
    --tab-inactive-bg: #e9ecef;
    --tab-inactive-text: #495057;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 30px;
    line-height: 1.7;
    background-color: var(--background-light);
    color: var(--text-dark);
    font-weight: 300;
}

.container {
    max-width: 1400px;
    margin: auto;
    background-color: var(--container-bg);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-color);
    overflow: hidden; /* Contain child elements */
}

h1, h2, h3 {
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    font-weight: 600;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
}

h2 {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.8em;
}

h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4em;
    border-bottom: none; /* Remove border for h3 */
    color: var(--text-dark); /* Darker text for h3 */
}

/* Tab Navigation */
.tab-nav {
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    background-color: transparent; /* Remove background */
    border-radius: 0; /* Remove radius */
    display: flex; /* Use flexbox for better alignment */
    gap: 5px; /* Space between tabs */
}

.tab-nav button {
    background-color: var(--tab-inactive-bg);
    float: none; /* Remove float */
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 20px;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease;
    font-size: 1em;
    font-weight: 400; /* Regular weight */
    color: var(--tab-inactive-text);
    border-radius: 6px 6px 0 0; /* Rounded top corners */
    border-bottom: 3px solid transparent; /* Space for active indicator */
    position: relative;
    top: 1px; /* Align with bottom border */
}

.tab-nav button:hover {
    background-color: #d1d9e0; /* Slightly darker inactive hover */
    transform: translateY(-2px); /* Subtle lift */
}

.tab-nav button.active {
    background-color: var(--container-bg); /* Match container background */
    color: var(--primary-color);
    font-weight: 600; /* Bold active tab */
    border-bottom: 3px solid var(--primary-color); /* Active indicator */
    transform: translateY(0); /* Reset transform, remove rotation */
    /* box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05); */ /* Remove shadow */
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px 5px; /* Adjust padding */
    border: none; /* Remove border */
    border-top: none;
    border-radius: 0;
    background-color: var(--container-bg);
    animation: fadeIn 0.5s ease-in-out; /* Fade-in animation */
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Specific Content Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.95em;
    box-shadow: 0 2px 5px var(--shadow-color);
    border-radius: 8px;
    overflow: hidden; /* Ensure radius applies to content */
}

th, td {
    border: 1px solid var(--border-color);
    padding: 12px 15px; /* Increase padding */
    text-align: left;
    vertical-align: middle;
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-top: none; /* Remove top border for header */
}

tr:nth-child(even) {
    background-color: var(--background-light);
}

tr:hover {
    background-color: #e9ecef; /* Subtle hover for rows */
}

td:first-child, th:first-child { border-left: none; }
td:last-child, th:last-child { border-right: none; }
tr:last-child td { border-bottom: none; }


.map-container {
    width: 100%;
    height: 600px; /* Slightly taller maps */
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden; /* Clip iframe */
    box-shadow: 0 3px 10px var(--shadow-color);
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.heatmap-container {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--background-light);
    border-radius: 8px;
}

.heatmap-container img {
    max-width: 100%; /* Allow image to scale */
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.highlight {
    background-color: #eaf5ff; /* Lighter highlight */
    border-left: 5px solid var(--primary-hover); /* Darker border */
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0; /* Rounded corners */
    font-size: 1.05em;
}

code {
    background-color: #e9ecef;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #c7254e; /* Distinct color for code */
}

ul {
    padding-left: 25px;
    list-style: disc; /* Standard disc */
}

li {
    margin-bottom: 8px; /* Space out list items */
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    color: var(--text-light);
}
/* Subtle Animations & Hover Effects */
.container {
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.container:hover {
    transform: translateY(-3px); /* Keep only lift effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.map-container,
.heatmap-container img {
    transition: transform var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
}

.map-container:hover,
.heatmap-container img:hover {
    transform: scale(1.02); /* Slightly enlarge */
    box-shadow: 0 6px 15px var(--shadow-color);
}