
:root {
    --dashboard-font-family: "Futura", "Trebuchet MS", "Avenir Next", Arial, sans-serif;
}

.dashboard-close-button {
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.dashboard-close-button:focus-visible {
    background: transparent;
    outline: none;
}

@media (hover: hover) and (pointer: fine) {
    .dashboard-close-button:hover {
        background: transparent;
        outline: none;
    }
}

.view-selector {
    position: relative; /* Allows for adjustment without impacting inventory-panel */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 27px; /* Space between icons */
    top: -18px; /* Pull icons slightly upward to free vertical space */
    line-height: 0; /* Remove extra inline glyph spacing */
}

.view-icon-container {
    position: relative;
    text-align: center;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
}

.view-icon {
    cursor: pointer;
    transition: opacity 0.3s ease, filter 0.3s ease;
    opacity: 0.7;
    width: 30px; /* Match icon art size to remove excess vertical padding */
    height: 30px; /* Match icon art size to remove excess vertical padding */
    display: inline-flex; /* Ensures the icon doesn't stretch */
    align-items: center;
    justify-content: center;
    margin: 0; /* Avoid any margin that might cause the icon to stretch */
}

.view-icon img {
    width: 30px; /* Ensure the image inside the icon is 35px wide */
    height: 30px; /* Ensure the image inside the icon is 35px tall */
    display: block;
    flex: 0 0 30px;
    object-fit: contain; /* Ensure the image fits within the container */
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    transition: filter 0.6s ease; /* Smooth color transition */
}

/* Change active icon to white */
.view-icon.active img,
.view-icon:focus-visible img {
    filter: brightness(0) invert(1); /* Turns the image white */
    opacity: 1; /* Ensure full visibility */
}

@media (hover: hover) and (pointer: fine) {
    .view-icon:hover img {
        filter: brightness(0) invert(1); /* Turns the image white */
        opacity: 1; /* Ensure full visibility */
    }
}

/* Center the section name below the inventory panel */
.section-name-display {
    position: relative; /* Allows for adjustment without impacting inventory-panel */
    margin-top: 0px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 20px;
    color: white;
    font-weight: bold;
    top: -5px; /* Move the view selector higher up */


    /* Added styles for full width and background */
    width: 150%; /* Matches the inventory-panel width */
    background-color: #121827; /* Darker background color */
    padding: 12px 0; /* Slightly reduced height across all views */
    box-sizing: border-box; /* Ensure padding doesn’t affect width */
}

/* Only show section-name when the associated view-icon is active */
.view-icon-container .view-icon.active + .section-name {
    visibility: visible; /* Make visible */
    opacity: 1; /* Fully visible */
}

/* Remove hover functionality */
@media (hover: hover) and (pointer: fine) {
    .view-icon-container:hover .section-name {
        visibility: hidden;
        opacity: 0;
    }
}
