.pixel-dbx {
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
    font-family: 'Inter', sans-serif;
}

/* Breadcrumb */
.pixel-dbx__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    background: #374151;
    color: #fff;
    font-size: 0.8125rem;
}

.pixel-dbx__breadcrumb-item {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.8125rem;
    font-family: inherit;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
}

.pixel-dbx__breadcrumb-item:hover {
    color: #3b82f6;
    background: rgba(255, 255, 255, 0.1);
}

.pixel-dbx__breadcrumb-item:last-child {
    color: #fff;
    font-weight: 600;
}

.pixel-dbx__breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

/* File list */
.pixel-dbx__list {
    overflow-y: auto;
    max-height: inherit;
}

/* Loading */
.pixel-dbx__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: #666;
    font-size: 0.875rem;
}

.pixel-dbx__spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e0e0e0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: pixelDbxSpin 0.6s linear infinite;
}

@keyframes pixelDbxSpin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.pixel-dbx__empty {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 0.875rem;
}

/* Error */
.pixel-dbx__error {
    text-align: center;
    padding: 2rem;
    color: #c0392b;
    font-size: 0.875rem;
}

/* File row */
.pixel-dbx__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: #333;
}

.pixel-dbx__item:last-child {
    border-bottom: none;
}

.pixel-dbx__item:hover {
    background: #f8f8f8;
}

.pixel-dbx__item--folder:hover {
    background: rgba(59, 130, 246, 0.06);
}

/* Icon */
.pixel-dbx__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}

.pixel-dbx__icon--folder {
    color: #3b82f6;
}

.pixel-dbx__icon--file {
    color: #374151;
}

.pixel-dbx__icon--pdf   { color: #c0392b; }
.pixel-dbx__icon--image { color: #27ae60; }
.pixel-dbx__icon--doc   { color: #2980b9; }
.pixel-dbx__icon--xls   { color: #27ae60; }

/* Name */
.pixel-dbx__name {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pixel-dbx__item--folder .pixel-dbx__name {
    font-weight: 600;
    color: #374151;
}

/* Meta (size, date) */
.pixel-dbx__meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: #999;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .pixel-dbx__meta {
        display: none;
    }
}

/* Download button */
.pixel-dbx__download {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.pixel-dbx__download:hover {
    color: #3b82f6;
    background: rgba(55, 65, 81, 0.05);
}

/* Back button (in file list) */
.pixel-dbx__back {
    color: #999;
    font-weight: 400;
}

.pixel-dbx__back .pixel-dbx__name {
    font-weight: 400;
    color: #999;
}
