/* START: heatmap-styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
    color: #333;
}

h1 {
    text-align: center;
    color: #2c3e50;
}

.heatmap-container {
    overflow-x: auto; /* Allows horizontal scrolling for wide tables */
    margin-top: 20px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

#industry-heatmap {
    border-collapse: collapse;
    width: 100%; /* Make table take full width of its container */
    min-width: 800px; /* Ensure a minimum width before scrolling */
    background-color: #fff;
}

#industry-heatmap th,
#industry-heatmap td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    min-width: 150px; /* Min width for scenario columns */
}

#industry-heatmap th {
    background-color: #34495e;
    color: white;
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 10;
}

#industry-heatmap td:first-child { /* Industry name column */
    font-weight: bold;
    background-color: #ecf0f1;
    min-width: 250px; /* Wider for industry names */
    position: sticky; /* Sticky first column */
    left: 0;
    z-index: 5;
}

/* Impact Level Colors - Higher score = more negative */
/* Positive Impacts */
.impact-very-high-positive { background-color: #006400; color: white; } /* Dark Green */
.impact-high-positive { background-color: #228B22; color: white; } /* Forest Green */
.impact-moderate-high-positive { background-color: #3CB371; color: white; } /* Medium Sea Green */
.impact-moderate-positive { background-color: #90EE90; color: black; } /* Light Green */
.impact-low-moderate-positive,
.impact-low-positive-stabilization,
.impact-low-positive-risk { background-color: #98FB98; color: black; } /* Pale Green */

/* Neutral / Low Impact */
.impact-mixed,
.impact-low,
.impact-uncertain,
.impact-resilient,
.impact-insulated,
.impact-low-indirect,
.impact-unknown { background-color: #FFFFE0; color: black; } /* Light Yellow / Off-White */

/* Negative Impacts */
.impact-low-moderate,
.impact-low-moderate-indirect { background-color: #FFDAB9; color: black; } /* PeachPuff - Light Orange */
.impact-moderate,
.impact-moderate-indirect,
.impact-moderate-supply,
.impact-moderate-chaos { background-color: #FFA07A; color: black; } /* LightSalmon - Orange */
.impact-moderate-high { background-color: #FF7F50; color: white; } /* Coral - Orange-Red */
.impact-high { background-color: #FF4500; color: white; } /* OrangeRed */
.impact-severe { background-color: #DC143C; color: white; } /* Crimson - Dark Red */
.impact-severe-crisis { background-color: #B22222; color: white; } /* Firebrick */
.impact-devastating { background-color: #8B0000; color: white; } /* DarkRed - Blood Red */


/* Tooltip Styling */
#tooltip {
    position: absolute;
    display: none;
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-size: 0.9em;
    max-width: 350px;
    z-index: 1000;
    pointer-events: none; /* Allows clicks to pass through if needed */
}

#tooltip h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1em;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

#tooltip ul {
    margin: 0;
    padding-left: 20px;
}
#tooltip li {
    margin-bottom: 3px;
}
/* END: heatmap-styles.css */