.biblioteca-header {
        background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
        border-bottom: 1px solid #e2e8f0;
    }

    .biblioteca-header h1 {
        margin-bottom: 12px;
    }

    .biblioteca-header p {
        margin: 0 auto;
    }

    /* Tabs UI */
    .hub-tabs {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin: -25px auto 20px;
        position: relative;
        z-index: 10;
    }

    .tab-btn {
        background: #fff;
        border: 1px solid #e2e8f0;
        padding: 12px 24px;
        border-radius: 50px;
        color: #64748b;
        font-weight: 600;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: all 0.2s;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    .tab-btn:hover {
        background: #f8fafc;
        color: #006272;
    }

    .tab-btn.active {
        background: #006272;
        color: #fff;
        border-color: #006272;
        box-shadow: 0 10px 15px rgba(0, 98, 114, 0.2);
    }

    .btn-text {
        text-align: center;
    }

    .section-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 30px;
        text-align: center;
    }

    .biblioteca-content {
        padding: 0 0 60px;
    }

    /* Grid Cards */
    .library-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }

    .library-card {
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit;
    }

    .library-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        border-color: #006272;
    }

    .library-card .card-cover {
        width: 100%;
        aspect-ratio: 4 / 3;
        background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
        position: relative;
        overflow: hidden;
    }

    .library-card .card-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-cover-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        font-size: 2.5rem;
    }

    .card-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        background: #16a34a;
        color: #fff;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 20px;
        text-transform: uppercase;
    }

    .card-badge.private {
        background: #0f172a;
    }

    .library-card .card-body {
        padding: 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .library-card .card-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 8px;
    }

    .library-card .card-desc {
        color: #64748b;
        font-size: 0.9rem;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-footer {
        padding-top: 12px;
        border-top: 1px solid #f1f5f9;
        margin-top: auto;
        color: #006272;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .library-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 24px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 14px;
    }

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

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

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

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

    .view-toggle {
        display: inline-flex;
        gap: 6px;
        padding: 4px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .view-toggle button {
        border: none;
        background: transparent;
        color: #64748b;
        width: 38px;
        height: 34px;
        border-radius: 9px;
        cursor: pointer;
    }

    .view-toggle button.active {
        background: #006272;
        color: #fff;
    }

    .library-grid.view-list {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .library-grid.view-list .library-card {
        flex-direction: row;
        align-items: stretch;
    }

    .library-grid.view-list .card-cover {
        width: 130px;
        aspect-ratio: auto;
        min-height: 110px;
        flex-shrink: 0;
    }

    .library-grid.view-list .card-body {
        justify-content: center;
    }

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

    @media (max-width: 576px) {
        .library-toolbar {
            flex-direction: column;
            align-items: stretch;
        }

        .view-toggle {
            justify-content: center;
        }

        .library-grid.view-list .library-card {
            flex-direction: column;
        }

        .library-grid.view-list .card-cover {
            width: 100%;
            aspect-ratio: 4 / 3;
        }
    }

    /* Login Area */
    .login-wrapper {
        max-width: 400px;
        margin: 0 auto;
        background: #fff;
        padding: 40px;
        border-radius: 24px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    }

    .login-wrapper h2 {
        text-align: center;
        margin-bottom: 30px;
        font-weight: 800;
        color: #0f172a;
    }

    .form-input {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 12px;
        font-size: 1rem;
    }

    .form-input:focus {
        border-color: #006272;
        outline: none;
    }

    .btn-submit {
        width: 100%;
        padding: 14px;
        background: #006272;
        color: #fff;
        border: none;
        border-radius: 12px;
        font-weight: 700;
        cursor: pointer;
    }

    .error-alert {
        background: #fef2f2;
        color: #dc2626;
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 20px;
        font-size: 0.9rem;
        text-align: center;
    }

    .user-pill {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        padding: 10px 20px;
        border-radius: 12px;
        margin-bottom: 30px;
        border: 1px solid #e2e8f0;
    }

    .user-pill-info {
        font-weight: 600;
        color: #0f172a;
    }

    .logout-link {
        color: #ef4444;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
    }

    /* Loading Overlay */
    .biblioteca-loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.95);
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 99999;
    }

    .loader-spinner {
        width: 50px;
        height: 50px;
        border: 4px solid #e2e8f0;
        border-top-color: #006272;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    .loader-text {
        margin-top: 20px;
        font-size: 1rem;
        font-weight: 600;
        color: #0f172a;
    }