/* Bocco File Browser Styles - dopasowane do istniejących akordeonów */

.bocco-file-browser {
    max-width: 100%;
    margin: 2rem 0;
}

/* Główny kontener - jak .files-accordion */
.bocco-fb-content {
    display: flex;
    flex-direction: column;
}

/* Folder jako accordion item */
.bocco-fb-folder {
    /* Bez dodatkowych styli - border będzie w content */
}

/* Header folderu - jak .files-accordion-item-header */
.bocco-fb-folder-header {
    display: inline-flex;
    gap: 15px;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    padding: 1rem 0;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.bocco-fb-folder-header:hover {
    opacity: 0.8;
}

/* Ikona chevron - zaraz po tytule */
.bocco-fb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 0;
}

.bocco-fb-icon img {
    transition: transform 0.3s ease;
}

.bocco-fb-icon img.rotated {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.bocco-fb-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: none;
}

/* Zawartość folderu */
.bocco-fb-folder-content {
    display: none;
    padding-left: 2rem;
}

/* Nested folders - z wcięciami */
.bocco-fb-folder-content .bocco-fb-folder-content {
    padding-left: 2rem;
}

/* Wcięcia na mobile - bardzo małe */
@media (max-width: 768px) {
    .bocco-fb-folder-content {
        padding-left: 0.5rem;
    }
    
    .bocco-fb-folder-content .bocco-fb-folder-content {
        padding-left: 0.5rem;
    }
}

/* Pliki - jak .files-table */
.bocco-fb-files-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* File item - jak .files-table-row - cały wiersz klikalny */
.bocco-fb-file {
    margin: 0;
    display: grid;
    grid-template-columns: 130px minmax(300px, 500px) 100px;
    border-bottom: 1px solid #E4D7CD;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.bocco-fb-file:hover {
    background-color: #f9f9f9;
}

.bocco-fb-file:last-child {
    border-bottom: 1px solid #E4D7CD;
}

/* Download icon */
.bocco-fb-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    font-size: 20px;
}

/* File name - bez bolda */
.bocco-fb-file-name {
    padding: 1rem 0;
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    word-break: break-word;
}

/* File size */
.bocco-fb-file-size {
    padding: 1rem 0;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-align: right;
}

/* Error message */
.bocco-file-browser-error {
    padding: 20px;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c00;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .bocco-fb-file {
        grid-template-columns: 50px minmax(120px, 1fr);
        gap: 0.5rem;
    }
    
    .bocco-fb-folder-header {
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .bocco-fb-name,
    .bocco-fb-file-name {
        font-size: 13px;
    }
    
    .bocco-fb-file-icon {
        padding: 0.75rem 0;
        font-size: 16px;
    }
    
    /* Ukryj osobną kolumnę z rozmiarem na mobile */
    .bocco-fb-file-size {
        display: none;
    }
    
    /* Dodaj rozmiar w nawiasie do nazwy pliku */
    .bocco-fb-file-name::after {
        content: " (" attr(data-size) ")";
        color: #666;
        font-size: 12px;
    }
}

