﻿.scrollbar__invisible {

}
    .scrollbar__invisible::-webkit-scrollbar {
        display: none;
    }

/* States */
[disabled] {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* COLLECTION VIEW */

.collection-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.collection-view__header,
.collection-view__footer {
}

.collection-view__items {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
}

.collection-view__empty {
}

.collection-view__item {
    position: relative;
    transition: all 0.2s ease;
}

.collection-view__item--selectable {
    cursor: pointer;
}

    .collection-view__item--selectable:hover {
        background-color: rgba(0, 123, 255, 0.05);
        border-color: rgba(0, 123, 255, 0.1);
    }

.collection-view__item--selected {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

.collection-view__item-selected {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent #007bff transparent transparent;
}

.collection-view__separator {
    height: 1px;
    background-color: #dee2e6;
    margin: 0.5rem 0;
}

/* Grid layout */
.collection-view--grid .collection-view__item {
    break-inside: avoid;
}

/* Horizontal scroll */
.collection-view--horizontal {
    overflow-x: auto;
    flex-wrap: nowrap;
}

/* Virtualized styles */
.virtualized-collection-view {
    height: 100%;
    position: relative;
}

    .virtualized-collection-view .virtualized-container {
        height: 100%;
        overflow-y: auto;
    }

/* LAYOUTS */
.layout-container {
    box-sizing: border-box;
    position: relative;
}

.layout-content {
    display: flex;
}

.layout-item {
    transition: all 0.2s ease;
}

.layout-item--selectable {
    cursor: pointer;
}

    .layout-item--selectable:hover {
        background-color: rgba(0, 123, 255, 0.05);
    }

.layout-item--selected {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

/* HorizontalLayout  */
.horizontal-layout {
    width: 100%;
}

.horizontal-layout__content-wrapper {
    position: relative;
    width: 100%;
}

.horizontal-layout__virtualized {
    display: flex;
    flex-direction: row;
}

.horizontal-layout__item {
    flex-shrink: 0;
}

/* Vertical scrolling with indicators */
.horizontal-layout--scrollable {
    position: relative;
}

    .horizontal-layout--scrollable::-webkit-scrollbar {
        height: 8px;
    }

    .horizontal-layout--scrollable::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .horizontal-layout--scrollable::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }

        .horizontal-layout--scrollable::-webkit-scrollbar-thumb:hover {
            background: #a1a1a1;
        }

.scroll-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.scroll-btn {
    pointer-events: all;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
}

    .scroll-btn:hover:not(:disabled) {
        background: #f8f9fa;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .scroll-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.scroll-prev {
    margin-left: 10px;
}

.scroll-next {
    margin-right: 10px;
}

/* VerticalLayout */
.vertical-layout {
    height: 100%;
}

.vertical-layout__content-wrapper {
    flex: 1;
    overflow: hidden;
}

.vertical-layout__item {
    width: 100%;
}

/* Adaptive стили */
@media (max-width: 768px) {
    .horizontal-layout__item {
        min-width: 150px !important;
    }

    .scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .horizontal-layout--scrollable .layout-content {
        flex-wrap: wrap;
    }

    .horizontal-layout__item {
        flex: 1 0 100%;
    }
}

/* Animations */
.layout-item-enter {
    opacity: 0;
    transform: translateY(10px);
}

.layout-item-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms, transform 300ms;
}

.layout-item-exit {
    opacity: 1;
}

.layout-item-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 300ms, transform 300ms;
}