/* :host { */
/* this is used for styling ibgib components for multi-view coordination, so
     * that ibgib views that are looking at the same ibgib can be visibly shown
     * as doing so. */
/* --ibgib-border-color: #00ccff; */
/* } */

#projects-component {
    --footer-panel-background-color: var(--button-background-color);
    --footer-panel-border-color: var(--button-border-color);
    --footer-panel-border-radius: 4px;

    /* debug add border style */
    border-width: 2px;
    border-color: var(--primary-border-color-dark);
    border-style: solid;
    border-radius: 2px;
    padding: 1%;

    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-sizing: border-box;

    #projects-header {
        height: 5%;
        overflow: hidden;
        /* flex-shrink: initial; */

        #projects-header-tabs {
            overflow-x: auto;
            width: 90%;
            /* scrollbar-color: rgba(16, 237, 35, 0.241) rgb(28, 109, 239); */
            scrollbar-width: thin;
            scrollbar-gutter: stable;
            margin-bottom: -1%;

            /* .panel-tab-button.active {
                border-color: var(--ibgib-border-color) !important;
            } */

        }

        button {
            width: auto;
            height: 75%;
            aspect-ratio: 1/1 !important;
            /* display: flex;
            flex-direction: column;
            justify-content: center; */
        }

        button:hover {
            /* cursor: pointer; */
            /* border-color: var(--button-hover-border-color); */
            border-width: 2px;
        }


        /* Add back the relative container for the button and popover */
        .add-button-container,
        .ellipsis-button-container {
            background-color: transparent;
            /* position: relative;
                display: inline-block; */
        }

        /* Keep the styles for the popover options */
        .add-popover-option,
        .ellipsis-popover-option {
            padding: 8px 15px;
            margin-bottom: 2px;
            cursor: pointer;
            transition: background-color 0.2s ease;
            background-color: var(--tab-background-color);
            color: var(--tab-text-color);
        }

        /* Keep the styles for the popover options */
        .add-popover-option:hover,
        .ellipsis-popover-option:hover {
            /* color: var(--tjp-color-contrast, #f0f0f0); */
            color: contrast-color(var(--tjp-color, #f0f0f0));
            background-color: var(--tjp-color, #f0f0f0);
        }

        /* Use anchor() for positioning */
        .add-popover,
        .ellipsis-popover {
            /* bottom: anchor(top); */
            /* Position the bottom of the popover at the top of the anchor */
            /* left: anchor(left); */
            /* Align the left of the popover with the left of the anchor */
            flex-direction: column;
            margin: 0px;
            /* padding: 5px 0; */
            border-radius: var(--border-radius, 4px);
            background-color: var(--background-color, #fff);
            border: 1px solid var(--border-color, #ccc);
            box-shadow: var(--box-shadow, 0 2px 5px rgba(0, 0, 0, 0.2));
            z-index: 10;
            /* Ensure it appears above other content */
        }
    }

    #projects-content {
        display: flex;
        height: 95%;
        width: 100%;
        /* overflow-y: auto; */
    }

    #projects-footer {
        /* debug add border style */
        /* border-width: 5px;
        border-color: rgb(230, 114, 205);
        border-style: solid; */
        padding: 1px;
        box-sizing: border-box;

        flex-shrink: 0;
        width: 100%;
        height: 20%;

        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: stretch;

        textarea {
            /* height: 100%; */
            flex-grow: 1;

            /* border-color: var(--footer-panel-border-color); */
            /* background-color: var(--footer-panel-background-color); */
            /* border-radius: var(--footer-panel-border-radius); */
            /* border-width: 1px; */
        }

        button {
            /* min-width: 30px;
            max-width: 70px; */
            height: 100%;
            flex-shrink: 0;
            align-self: center;
            margin: 2px;
        }
    }
}
