/* Knoww Reader - File Browser Styles */

.file-list {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: #f8f9fa;
}

.file-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #6c757d;
}

.file-item.directory i {
    color: #ffc107;
}

.file-item.file i {
    color: #17a2b8;
}

.file-item .file-name {
    flex: 1;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.file-item .file-name:hover {
    color: #007bff;
    text-decoration: underline;
}

.file-item .file-meta {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Breadcrumb */
.breadcrumb {
    background: #e9ecef;
    padding: 12px 20px;
    border-radius: 8px;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Share Dropdown Popover */
.share-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 350px;
    max-width: 400px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.75rem;
    z-index: 1000;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-dropdown-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.share-loading {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
}

.share-dropdown input[readonly] {
    background-color: #f8f9fa;
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
}

.share-dropdown .btn {
    padding: 0.375rem 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 15px;
    }

    .file-item i {
        margin-bottom: 8px;
    }

    .file-item .file-meta {
        margin-top: 8px;
        font-size: 0.8rem;
    }

    .share-dropdown {
        min-width: 280px;
        max-width: 90vw;
        right: -10px;
    }
}
