/* Moderation Page Layout */
.moderation-content {
    padding-top: 20px;
}

.moderation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.moderation-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.moderation-username {
    color: #666666;
    margin: 0;
    font-size: 14px;
}

/* Filter Controls Area */
.moderation-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Sections */
.moderation-section {
    margin-bottom: 32px;
}

/* Loading and Error States */
.moderation-loading,
.moderation-error {
    text-align: center;
    padding: 40px;
    font-size: 18px;
}

.moderation-error {
    color: #d32f2f;
    background-color: #ffebee;
    border-radius: 8px;
}

/* Image Modal */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.image-modal {
    background: white;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #d32f2f;
}

.modal-body {
    padding: 20px;
}

.group-details {
    margin-bottom: 20px;
    padding: 16px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.group-details p {
    margin: 8px 0;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.image-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-actions {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
}

.image-name {
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .moderation-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .image-modal {
        max-width: 95%;
    }
}
