#infoPanel {
    position: relative;
    width: 20%;
    background-color: black;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
}

.info-section {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-section::-webkit-scrollbar {
    display: none;
}

.info-row {
    position: relative;
    display: grid;
    grid-template-columns: 6fr 7fr 5fr;
    align-items: center;
    /* MODIFIED: Reduced vertical padding */
    padding: 4px 10px;
    color: #EAEAEA;
    gap: 10px;
    background-color: #111;
    border-radius: 4px;
    overflow: hidden;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    /* MODIFIED: Reduced the fixed height */
    height: 26px;
}

.info-row.non-producible {
    grid-template-columns: 2fr 0fr 1fr;
}

.info-row:hover {
    background-color: #2a2a2a;
    cursor: help;
}

.resource-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: rgba(var(--glow-r), var(--glow-g), var(--glow-b), 0.2);
    z-index: 1;
    transition: width 0.2s ease-out;
}

/* Ensure text over the Energy bar is readable */
.info-row[data-resource="Energy"] {
    color: rgba(255, 215, 0, 0.9);
}

.infocolumn1, .infocolumn2, .infocolumn3 {
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 2;
    min-width: 0;
}

.infocolumn1 { justify-content: flex-start; }
.infocolumn2, .infocolumn3 { justify-content: flex-end; }

.info-row {
    position: relative;
}

.info-row .infocolumn1 {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* space between icon and text */
}

.info-row span,
.info-row p {
    margin: 0;
    font-size: 11px;
    white-space: nowrap;
}

.infocolumn1 span {
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-row.capped .infocolumn3,
.info-row.capped .infocolumn2 {
    color: #E74C3C;
    font-weight: bold;
}

.info-row .zero-amount {
    color: #E74C3C;
    font-weight: bold;
}

.info-row .negative-rate {
    color: #E74C3C;
    font-weight: bold;
}

.info-row.insight-resource {
    color: #FFD700;
}

/* Debuff icon inside resource row: symbol only */
.info-row .debuff-icon {
    display: none; /* shown when .active is added */
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    pointer-events: auto;   /* ensure it receives mouse events */
    position: relative; 
    z-index: 999; 
}

/* show when active */
.info-row .debuff-icon.active {
    display: inline-flex !important;
}

/* smaller icon and multiplier styling */
.info-row .debuff-icon .icon { 
    font-size: 12px; line-height: 1;
    pointer-events: none;
 }

.info-row .debuff-icon .mult { 
font-size: 11px; margin-left: 2px;
display: none !important; 
}

/* hide by default; JS will toggle display */
.info-row .debuff-icon { display: none; }

/* Visually indicate actions blocked until the nearby sound has been investigated */
.blocked-investigate-sound {
    opacity: 0.55;
    filter: grayscale(30%);
    cursor: not-allowed;
}

/* keep cancel-text and tooltip behavior functional even when visually blocked */
.blocked-investigate-sound .cancel-text { opacity: 0.6; }