.author-posts-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e1e1;
}

.btn-primary {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f7f7f7;
    color: #333;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e9e9e9;
    border-color: #ccc;
}

.author-posts-dashboard .btn-view {
    background: #0073aa !important;
    color: white !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    margin-right: 10px !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

.author-posts-dashboard .btn-view:hover {
    background: #005a87 !important;
}

.author-posts-dashboard .btn-edit {
    background: #46b450 !important;
    color: white !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    margin-right: 10px !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

.author-posts-dashboard .btn-edit:hover {
    background: #3e9f42 !important;
}

.author-posts-dashboard .btn-delete {
    background: #dc3232 !important;
    color: white !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

.author-posts-dashboard .btn-delete:hover {
    background: #c62d2d !important;
}

.btn-back {
    background: #666;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.btn-back:hover {
    background: #555;
}

.post-item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-thumbnail {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    border-radius: 6px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #666;
}

.post-info {
    flex: 1;
}

.post-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.post-meta {
    color: #666;
    font-size: 13px;
    margin: 0;
}

.post-meta span {
    margin-right: 15px;
}

.post-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#new_category_field {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
}

#new_category_name {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
}

.author-posts-dashboard .wp-editor-wrap {
    position: relative !important;
    z-index: 1 !important;
    margin: 10px 0 !important;
    float: none !important;
    width: 100% !important;
    clear: both !important;
    overflow: visible !important;
}

.author-posts-dashboard .wp-editor-tabs {
    display: flex !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #ddd !important;
    background: #f9f9f9 !important;
    float: none !important;
    width: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.author-posts-dashboard .wp-switch-editor {
    background: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    border-bottom: none !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-size: 13px !important;
    color: #666 !important;
    text-decoration: none !important;
    outline: none !important;
    float: none !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

.author-posts-dashboard .wp-switch-editor:hover {
    background: #fff !important;
    color: #333 !important;
}

.author-posts-dashboard .wp-switch-editor.switch-tmce[aria-pressed="true"],
.author-posts-dashboard .wp-switch-editor.switch-html[aria-pressed="true"] {
    background: #fff !important;
    color: #333 !important;
    border-bottom: 1px solid #fff !important;
    margin-bottom: -1px !important;
}

.author-posts-dashboard .wp-editor-container {
    border: 1px solid #ddd !important;
    background: #fff !important;
    position: relative !important;
    z-index: 1 !important;
}

.author-posts-dashboard .mce-tinymce {
    border: none !important;
}

.author-posts-dashboard .form-group .wp-editor-wrap {
    clear: both !important;
    overflow: visible !important;
    float: none !important;
    width: 100% !important;
}

#featured-preview,
#gallery-preview {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
}

#featured-preview {
    position: relative !important;
    display: inline-block !important;
    width: fit-content !important;
    margin: 0 !important;
}

#featured-preview img {
    max-width: 200px !important;
    height: 150px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 2px solid #e1e1e1 !important;
    display: block !important;
    margin: 0 !important;
}

.gallery-item img {
    max-width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e1e1e1;
}

.gallery-item {
    position: relative;
    display: inline-block;
}

#featured-preview .remove-featured {
    position: relative !important;
    float: right !important;
    top: -145px !important;
    right: 5px !important;
    width: 25px !important;
    height: 25px !important;
    background: #dc3232 !important;
    color: white !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    font-family: Arial, sans-serif !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.author-posts-dashboard .gallery-item .remove-gallery {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    width: 30px !important;
    height: 30px !important;
    background: #dc3232 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    z-index: 10 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    font-family: Arial, sans-serif !important;
}

.author-posts-dashboard #featured-preview .remove-featured:hover,
.author-posts-dashboard .gallery-item .remove-gallery:hover {
    background: #a00 !important;
    transform: scale(1.1) !important;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
    display: flex;
    gap: 15px;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e1e1;
}

.author-post-gallery {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: transparent;
    border-radius: 8px;
    scrollbar-width: thin;
}

.author-post-gallery .gallery-item {
    flex: 0 0 200px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.author-post-gallery .gallery-item:hover {
    transform: translateY(-2px);
}

.author-post-gallery .gallery-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
}

.author-post-gallery::-webkit-scrollbar {
    height: 8px;
}

.author-post-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.author-post-gallery::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.author-post-gallery::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 768px) {
    .posts-header,
    .editor-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .post-item {
        flex-direction: column;
        text-align: center;
    }
    
    .post-thumbnail {
        margin: 0 0 15px 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .author-post-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}