.user-library {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    overflow-y: hidden;
}

.library-content {
    max-height: none;
    overflow-y: visible;
}

/* Rest of your original CSS code remains unchanged */

.library-title {
    margin-bottom: 10px;
}

.library-info {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
}

.library-content table {
    width: 100%;
    border-collapse: collapse;
}

.library-content th, .library-content td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.library-content th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.post-title {
    cursor: pointer;
}

.post-title:hover {
    text-decoration: underline;
}

.last-viewed {
    position: relative;
}

.open-post {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    background-color: white;
    color: #F08521;
    border: 2px solid #F08521;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.open-post:hover {
    background-color: #F08521;
    color: white;
}

.library-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.library-actions button {
    padding: 5px 10px;
    background-color: #F08521;
    color: white;
    border: none;
    cursor: pointer;
}

.library-actions button:hover {
    background-color: #e07b1a;
}

#delete-posts-btn, #add-tags-btn {
    display: none;
    width:120px;
    margin-bottom: 10px;
}

.post-select {
    margin-right: 10px;
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sort-options {
    margin-bottom: 20px;
}

.sort-options select {
    padding: 5px;
    font-size: 14px;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination button {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: none;
    cursor: pointer;
}

.pagination button:hover {
    background-color: #e0e0e0;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.post-content {
    display: none;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin-top: 10px;
}

.post-content.expanded {
    display: block;
}

.edit-post-form {
    margin-top: 10px;
}

.edit-post-form textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
}

.edit-post-form input[type="text"] {
    width: 100%;
    margin-bottom: 10px;
}

.edit-post-form button {
    margin-right: 10px;
}