@use '@angular/material' as mat;

:host {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.sidebar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    app-region: drag;

    &.sidebar-header--workspace {
        justify-content: flex-end;
    }

    button {
        @include mat.form-field-density(-5);
        app-region: no-drag;
    }
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.content-header {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    app-region: drag;

    h2 {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    button {
        app-region: no-drag;
    }
}

.header-left {
    min-width: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    app-region: no-drag;
}

.category-search {
    width: 240px;
}

.scrollable-content {
    flex: 1;
    overflow-y: auto;

    &.no-header {
        margin-top: 0;
    }
}
