@scope (.GSAMPLE_BROWSER) {

    .container {
        width: calc(100% - 20px);
        margin: 0 auto;
        /*padding: 20px;*/
        font-size:14px;
    }


    .folder-select option {
        padding: 8px;
        background-color: #2a2a2a;
        color: #d5a865;
    }

    .folder-path {
        font-family: monospace;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 50px;
        text-align:center;
    }/* General Styles */

    .ftags{
        display: inline;
        border-radius: 5px;

    }

    .DrumTag
    {
        border:1px solid #854d0e;
        border-left:3px solid #854d0e;
    }

    .FXTag
    {
        border:1px solid #1e40af;
        border-left:3px solid #1e40af;
    }

    .FoleyTag
    {
        border:1px solid #9d174d;
        border-left:3px solid #9d174d;
    }

    .InstrumentsTag
    {
        border:1px solid #5b21b6;
        border-left:3px solid #5b21b6;
    }

    .GenresTag
    {
        border:1px solid #92400e;
        border-left:3px solid #92400e;
    }

    .OtherTag
    {
        border:1px solid #075985;
        border-left:3px solid #075985;
    }



    h1 {
        text-align: center;
        margin-bottom: 30px;
        color: #d5a865;
    }

    h3 {
        margin-bottom: 15px;
        color: #d5a865;
    }

    hr {
        border: 1px solid #d5a865;
        margin: 20px 0;
    }

    /* Autocomplete Styles */
    .tag-input-container {
        margin-bottom: 5px;
    }

    .autocomplete-wrapper {
        position: relative;
        /*margin-top: 10px;
        margin-bottom: 10px;
        */
    }

    .folder-filter {
        /*margin-top: 20px;*/
    }

    .bpm-filter {
        /*margin-top: 20px;*/
    }
    .key-filter {
        /*margin-top: 20px;*/
    }





    .folder-select {
        width: 100%;
        padding: 4px;
        border: 1px solid #d5a865;
        border-radius: 4px;
        font-size: 14px;
        background-color: #2a2a2a;
        color: #d5a865;
        /*margin-top: 10px;*/
    }

    input[type="text"], 
    input[type="number"],
    select {
        width: 100%;
        padding: 4px;
        border: 1px solid #d5a865;
        border-radius: 4px;
        font-size: 14px;
        background-color: #2a2a2a;
        color: #d5a865;
    }

    .autocomplete-results {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 10;
        background: #2a2a2a;
        border: 1px solid #d5a865;
        border-top: none;
        border-radius: 0 0 4px 4px;
        max-height: 200px;
        overflow-y: auto;
        display: none;
    }

    .autocomplete-item {
        padding: 10px 12px;
        cursor: pointer;
        transition: background-color 0.2s;
        color: #d5a865;
    }

    .autocomplete-item:hover {
        background-color: #3a3a3a;
    }

    .selected-tags-container
    {
        height:40px;
    }

    /* Selected Tags Styles */
    .selected-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }

    .tag {
        background-color: #3a3a3a;
        color: #d5a865;
        border: 1px solid #d5a865;
        /*padding: 6px 12px;*/
        padding: 3px 6px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        font-size: 14px;
    }

    .tag-remove {
        margin-left: 6px;
        cursor: pointer;
        font-weight: bold;
    }

    /* Files Grid Styles */
    .files-container {
        /*margin-bottom: 10px;*/
    }

    .files-grid-container {
        background-color: #2a2a2a;
        border-radius: 8px;
        border: 1px solid #3d301d;
        padding: 15px;
        overflow-x: auto;
        height: calc(100vh - 500px);
        overflow-y:auto;
    }

    .files-grid {
        width: 100%;
        border-collapse: collapse;
        color: #d5a865;
    }

    .files-grid th {
        padding: 6px 5px;
        text-align: left;
        border-bottom: 1px solid #3a3a3a;
        font-family: monospace;
        font-size:14px;
    }
    
    .files-grid td {
        padding: 6px 5px;
        text-align: left;
        border-bottom: 1px solid #3a3a3a;
        font-family: monospace;
        font-size:14px;
    }

    .files-grid th:nth-child(5),
    .files-grid td:nth-child(5) {
        min-width: 250px;
        max-width: 350px;
    }

    .files-grid th {
        background-color: #3a3a3a;
        color: #d5a865;
        font-weight: bold;
    }

    .files-grid tr:last-child td {
        border-bottom: none;
    }

    .files-grid tr:hover {
        background-color: #3a3a3a;
    }

    .no-files-message {
        padding: 20px;
        text-align: center;
        color: #d5a865;
        font-style: italic;
    }

    .hidden {
        display: none;
    }

    /* Add Test Data Styles */
    .add-test-data {
        background-color: #2a2a2a;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid #d5a865;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .test-data-tabs {
        display: flex;
        margin-bottom: 20px;
        border-bottom: 1px solid #d5a865;
    }

    .tab-button {
        background-color: transparent;
        color: #d5a865;
        border: none;
        padding: 10px 16px;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s;
        margin-right: 10px;
        border-bottom: 2px solid transparent;
    }

    .tab-button.active {
        border-bottom: 2px solid #d5a865;
        font-weight: bold;
    }

    .tab-button:hover {
        background-color: #3a3a3a;
    }

    .form-group {
        margin-bottom: 15px;
    }

    label {
        display: block;
        color: #d5a865;
        margin: 0 !important;
        font-weight: bold;
    }

    button {
        background-color: #3a3a3a;
        color: #d5a865;
        border: 1px solid #d5a865;
        padding: 10px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s;
    }

    button:hover {
        background-color: #d5a865;
        color: #1e1e1e;
    }

    #advancedsearchLink:visited
    {
        color: #FF6600;  /* Color when link is clicked (orange) */
    }

    #advancedsearchLink:focus
    {
        color: #FF6600;  /* Color when link is clicked (orange) */
        border: 1px solid #000;
    }

    #advancedsearchLink:hover {
        color: #FF0000;  /* Color when hovering over link (red) */
    }

    #advancedsearchLink
    {
        color: #d5a865;
    }

    /*
    #advancedsearch
    {
        display: none;
    }
    */
    

    #SelectedSampleFolder
    {
        font-size:12px;
        font-family:monospace;
        padding:3px !important;
    }
    
    #SelectedSampleFile
    {
        font-size:12px;
        font-family:monospace;
        padding:3px !important;
    }

    #SelectedMetaData
    {
        font-size:10px;
        font-family:monospace;
        padding:3px !important;
    }

    .isSelected
    {
        border:1px solid red;
        background-color: #3a3a3a;
    }

    .samplebrowserlabels
    {
        font-size: 12px;
        font-weight: 300;
    }
}


@scope (.GSAMPLE_BROWSER_TREE) 
{

        .container {
            max-width: 800px;
            width: 400px;
            height: 600px;
            margin: 0 auto;
            background: #2a2a2a;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

            font-size: 14px;
            font-family: monospace;

        }



        .breadcrumb {
            background: #2a2a2a;
            color: #d5a865;
            padding: 12px 16px;
            border-bottom: 1px solid #333;
            font-size: 14px;
            box-shadow: 
                inset 5px 5px 10px rgba(0, 0, 0, 0.5),
                inset -5px -5px 10px rgba(255, 255, 255, 0.05);
        }

        .tree-container {
            padding: 16px;
            background: #1e1e1e;
            max-height: 600px;
            overflow-y: auto;
            overflow-x: auto;
            white-space: nowrap;
        }

        .tree-node {
            position: relative;
        }

        .tree-node.child-node {
            margin-left: 20px;
        }

        .tree-item {
            display: flex;
            align-items: center;
            padding: 6px 8px;
            cursor: pointer;
            border-radius: 4px;
            margin: 2px 0;
            transition: all 0.2s ease;
            position: relative;
            white-space: nowrap;
            min-width: fit-content;
        }

        .tree-item:hover {
            background: #333;
            color: #d5a865;
        }

        .tree-item.selected {
            background: #d5a865;
            color: #1a1a1a;
        }

        .tree-item.has-children::before {
            content: '▶';
            margin-right: 8px;
            font-size: 12px;
            transition: transform 0.2s ease;
            color: #888;
        }

        .tree-item.expanded::before {
            transform: rotate(90deg);
        }

        .tree-item.leaf {
            padding-left: 20px;
        }

        .tree-item.leaf::before {
            content: '📁';
            margin-right: 8px;
            font-size: 12px;
        }

        .tree-children {
            display: none;
            margin-left: 16px;
            border-left: 1px solid #333;
            padding-left: 8px;
        }

        .tree-children.expanded {
            display: block;
        }

        .folder-name {
            font-weight: 500;
            white-space: nowrap;
        }

        .folder-count {
            margin-left: auto;
            font-size: 12px;
            color: #888;
            background: #333;
            padding: 2px 6px;
            border-radius: 10px;
        }

        /* Scrollbar styling */
        .tree-container::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        .tree-container::-webkit-scrollbar-track {
            background: #1a1a1a;
        }

        .tree-container::-webkit-scrollbar-thumb {
            background: #444;
            border-radius: 4px;
        }

        .tree-container::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        .tree-container::-webkit-scrollbar-corner {
            background: #1a1a1a;
        }
}


.samplebrowser-breadcrumb {
    font-size: 12px;
    font-family: monospace;

    background: #2a2a2a;
    color: #d5a865;

    /*padding: 12px 16px;*/
    border-bottom: 1px solid #333;
    margin-bottom: 4px;
    box-shadow: 
        inset 5px 5px 10px rgba(0, 0, 0, 0.5),
        inset -5px -5px 10px rgba(255, 255, 255, 0.05);
}

