.biblioteca-detail-page {
        background: #fff;
        min-height: 100vh;
        padding-top: 80px;
    }

    .detail-header {
        background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
        border-bottom: 1px solid #e2e8f0;
        padding: 60px 0 40px;
        text-align: center;
        margin-bottom: 40px;
    }

    .detail-breadcrumb {
        margin-bottom: 20px;
        font-size: 0.9rem;
        color: #64748b;
        text-align: center;
    }

    .detail-breadcrumb a {
        color: #64748b;
        text-decoration: none;
        transition: color 0.2s;
    }

    .detail-breadcrumb a:hover {
        color: #006272;
    }

    .detail-title {
        font-size: 2.2rem;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .detail-access-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .detail-access-badge.public {
        background: #dcfce7;
        color: #166534;
    }

    .detail-access-badge.private {
        background: #f1f5f9;
        color: #475569;
    }

    .content-layout {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 40px;
        padding: 30px 0 60px;
    }

    @media (max-width: 992px) {
        .content-layout {
            display: flex;
            flex-direction: column-reverse;
            gap: 30px;
        }
    }

    /* File List */
    .file-card-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .file-toolbar {
        display: flex;
        align-items: center;
        margin-bottom: 18px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 14px;
    }

    .file-search {
        position: relative;
        flex: 1;
    }

    .file-search i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
    }

    .file-search input {
        width: 100%;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 12px 14px 12px 40px;
        color: #0f172a;
    }

    .file-search input:focus {
        outline: none;
        border-color: #006272;
        box-shadow: 0 0 0 3px rgba(0, 98, 114, 0.1);
    }

    .file-empty-filter {
        display: none;
        text-align: center;
        color: #64748b;
        padding: 30px 0;
    }

    @media (max-width: 576px) {
        .file-toolbar { align-items: stretch; }
    }

    .file-item {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 20px;
        transition: all 0.2s;
        text-decoration: none;
        /* Remove underline from anchor */
        color: inherit;
        /* Inherit text color */
        cursor: pointer;
        position: relative;
        /* For z-index context if needed */
    }

    .file-item:hover {
        border-color: #006272;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        transform: translateY(-2px);
        background-color: #f8fafc;
        /* Subtle hover bg */
    }

    .file-icon {
        width: 50px;
        height: 50px;
        background: #f1f5f9;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #64748b;
        flex-shrink: 0;
        position: relative;
        /* For badges */
    }

    .file-badge-type {
        position: absolute;
        bottom: 6px;
        right: -4px;
        background: #ef4444;
        color: white;
        font-size: 9px;
        font-weight: 800;
        padding: 2px 4px;
        border-radius: 4px;
        line-height: 1;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        text-transform: uppercase;
    }

    .file-info {
        flex: 1;
        min-width: 0;
    }

    .file-name {
        font-weight: 600;
        color: #0f172a;
        margin-bottom: 0;
        white-space: normal;
        /* Allow wrapping */
        word-break: break-word;
    }

    .file-meta {
        font-size: 0.85rem;
        color: #64748b;
    }

    .btn-download-item {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #006272;
        background: #fff;
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .btn-download-item:hover {
        background: #006272;
        color: #fff;
        border-color: #006272;
    }

    /* Sidebar */
    .detail-sidebar {
        background: #fff;
        border-radius: 16px;
        padding: 24px;
        border: 1px solid #e2e8f0;
        height: fit-content;
    }

    .sidebar-cover {
        width: 100%;
        border-radius: 12px;
        margin-bottom: 24px;
        object-fit: cover;
        aspect-ratio: 4/3;
        background: #f1f5f9;
    }

    .sidebar-label {
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #94a3b8;
        margin-bottom: 8px;
    }

    .sidebar-text {
        font-size: 0.95rem;
        color: #334155;
        line-height: 1.6;
        margin-bottom: 24px;
        text-align: justify;
    }

    .btn-download-all {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 12px;
        background: #0f172a;
        color: #fff;
        font-weight: 600;
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.2s;
    }

    .btn-download-all:hover {
        background: #1e293b;
        transform: translateY(-2px);
    }

    .empty-files {
        text-align: center;
        padding: 60px 0;
        color: #94a3b8;
    }

    .empty-files i {
        font-size: 48px;
        margin-bottom: 16px;
        opacity: 0.5;
    }

    .btn-close-session {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #ef4444;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        margin-top: 8px;
    }

    .btn-close-session:hover {
        text-decoration: underline;
    }

    .sidebar-text {
        font-size: 0.95rem;
        color: #334155;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    /* Upload Button */
    .btn-upload-file {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background: #006272;
        color: #fff;
        border-radius: 10px;
        border: none;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
        font-size: 0.9rem;
    }

    .btn-upload-file:hover {
        background: #004e5b;
        transform: translateY(-2px);
        color: #fff;
    }

    /* Upload Modal */
    .upload-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        align-items: center;
        justify-content: center;
    }

    .upload-modal.active {
        display: flex;
    }

    .upload-modal-content {
        background: #fff;
        border-radius: 16px;
        max-width: 500px;
        width: 90%;
        padding: 30px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .upload-dropzone {
        border: 2px dashed #cbd5e1;
        border-radius: 12px;
        padding: 40px 20px;
        text-align: center;
        background: #f8fafc;
        cursor: pointer;
        transition: all 0.2s;
    }

    .upload-dropzone:hover,
    .upload-dropzone.dragover {
        border-color: #006272;
        background: #f0f9fa;
    }

    .upload-dropzone i {
        font-size: 48px;
        color: #94a3b8;
        margin-bottom: 12px;
    }