/**
 * Rank Writer Tab Styles
 */

 #rank-writer-table-container {
    max-width: 1200px;
 }

/* Section container */
.rank-writer-section {
    margin: 20px 0;
}

.rank-writer-section .description {
    margin-bottom: 20px;
    color: #666;
}

/* Bulk Actions Bar */
.rank-writer-bulk-actions {
    background: #e3f2fd;
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border: 1px solid #90caf9;
    max-width: 1170px;
}

#rank-writer-selected-count {
    font-weight: 600;
    color: #1565c0;
}

/* Table Styles */
#rank-writer-table {
    margin-top: 10px;
}

#rank-writer-table .check-column {
    width: 40px;
    padding: 8px;
}

#rank-writer-table .rank-writer-added-column {
    width: 70px;
    text-align: center;
}

#rank-writer-table thead th {
    font-weight: 600;
}

#rank-writer-table tbody tr.rank-writer-uploaded {
    background-color: #f0f8f0;
}

#rank-writer-table tbody tr.rank-writer-uploaded:hover {
    background-color: #e8f5e8;
}

.rank-writer-check {
    font-size: 16px;
}

/* Loading State */
.rank-writer-loading {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.rank-writer-loading .spinner {
    margin: 0 auto 10px;
}

.rank-writer-loading p {
    margin: 10px 0 0;
    color: #666;
}

/* Empty State */
.rank-writer-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.rank-writer-empty-state p {
    margin: 0 0 20px;
    font-size: 16px;
}

/* Error State */
.rank-writer-error-state {
    text-align: center;
    padding: 40px 20px;
    background: #fef7f7;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    color: #721c24;
}

.rank-writer-error-state p {
    margin: 0 0 15px;
}

/* Pagination */
.rank-writer-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 15px 0;
}

#rank-writer-page-info {
    color: #666;
    font-weight: 500;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .rank-writer-bulk-actions {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    #rank-writer-table .check-column {
        width: 30px;
    }
    
    #rank-writer-table .rank-writer-added-column {
        width: 50px;
    }
    
    .rank-writer-pagination {
        flex-wrap: wrap;
    }
}